OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org
/TR/REC-html40/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org
/TR/REC-html40/loose.dtd"> |
2 <HTML> | 2 <HTML> |
3 <HEAD> | 3 <HEAD> |
4 <TITLE>CSS1 Test Suite: 5.5.06 padding-top</TITLE> | 4 <TITLE>CSS1 Test Suite: 5.5.06 padding-top</TITLE> |
5 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | 5 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 <META http-equiv="Content-Style-Type" content="text/css"> | 6 <META http-equiv="Content-Style-Type" content="text/css"> |
7 | 7 |
8 <LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.cs
s"> | 8 <LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.cs
s"> |
| 9 <SCRIPT src="../resources/base.js"></SCRIPT> |
9 <STYLE type="text/css"> | 10 <STYLE type="text/css"> |
10 .one {padding-top: 25px; background-color: aqua;} | 11 .one {padding-top: 25px; background-color: aqua;} |
11 .two {padding-top: -10px; background-color: aqua;} | 12 .two {padding-top: -10px; background-color: aqua;} |
12 </STYLE> | 13 </STYLE> |
13 | 14 |
14 </HEAD> | 15 </HEAD> |
15 | 16 |
16 <BODY><P>The style declarations which apply to the text below are:</P> | 17 <BODY><P>The style declarations which apply to the text below are:</P> |
17 <PRE>.one {padding-top: 25px; background-color: aqua;} | 18 <PRE>.one {padding-top: 25px; background-color: aqua;} |
18 .two {padding-top: -10px; background-color: aqua;} | 19 .two {padding-top: -10px; background-color: aqua;} |
(...skipping 15 matching lines...) Expand all Loading... |
34 <TR> | 35 <TR> |
35 <TD bgcolor="silver"> </TD> | 36 <TD bgcolor="silver"> </TD> |
36 <TD><P style="background-color: gray;"> | 37 <TD><P style="background-color: gray;"> |
37 This element is unstyled save for a background color of gray. It contains an <S
PAN class="one">inline element of class <TT>one</TT>, giving it an aqua backgrou
nd and a 25px top padding</SPAN>. Padding on inline elements does not affect li
ne-height calculations, so all lines in this element should have the same line-h
eight. There may be implementation-specific limits on how much of the padding t
he user agent is able to display. | 38 This element is unstyled save for a background color of gray. It contains an <S
PAN class="one">inline element of class <TT>one</TT>, giving it an aqua backgrou
nd and a 25px top padding</SPAN>. Padding on inline elements does not affect li
ne-height calculations, so all lines in this element should have the same line-h
eight. There may be implementation-specific limits on how much of the padding t
he user agent is able to display. |
38 </P> | 39 </P> |
39 <P style="background-color: gray;"> | 40 <P style="background-color: gray;"> |
40 This element is unstyled save for a background color of gray. It contains an <S
PAN class="two">inline element of class <TT>two</TT>, giving it an aqua backgrou
nd and no top padding, since negative padding values are not allowed</SPAN>. Pa
dding on inline elements does not affect line-height calculations, so all lines
in this element should have the same line-height. | 41 This element is unstyled save for a background color of gray. It contains an <S
PAN class="two">inline element of class <TT>two</TT>, giving it an aqua backgrou
nd and no top padding, since negative padding values are not allowed</SPAN>. Pa
dding on inline elements does not affect line-height calculations, so all lines
in this element should have the same line-height. |
41 </P> | 42 </P> |
42 </TD></TR></TABLE></BODY> | 43 </TD></TR></TABLE></BODY> |
43 </HTML> | 44 </HTML> |
OLD | NEW |