| 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.05 margin</TITLE> | 4 <TITLE>CSS1 Test Suite: 5.5.05 margin</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 body {overflow: hidden;} | 11 body {overflow: hidden;} |
| 11 .zero {background-color: silver; margin: 0;} | 12 .zero {background-color: silver; margin: 0;} |
| 12 .one {margin: 25px; background-color: aqua;} | 13 .one {margin: 25px; background-color: aqua;} |
| 13 .two {margin: -10px; background-color: aqua;}</STYLE> | 14 .two {margin: -10px; background-color: aqua;}</STYLE> |
| 14 | 15 |
| 15 </HEAD> | 16 </HEAD> |
| 16 | 17 |
| 17 <BODY><P>The style declarations which apply to the text below are:</P> | 18 <BODY><P>The style declarations which apply to the text below are:</P> |
| 18 <PRE>.zero {background-color: silver; margin: 0;} | 19 <PRE>.zero {background-color: silver; margin: 0;} |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 This element has a class of zero. | 54 This element has a class of zero. |
| 54 </P> | 55 </P> |
| 55 <P style="background-color: gray;"> | 56 <P style="background-color: gray;"> |
| 56 This element is unstyled save for a background color of gray.. It contains an <
SPAN class="two">inline element of class <TT>two</TT>, giving it an aqua backgro
und and a -10px margin</SPAN>. Margins on inline elements does not affect line-
height calculations, so all lines in this element should have the same line-heig
ht. However, there should be a -10px margin to the left side of the inline box
in the first line it appears, and a -10px margin to the right side of the inline
element box in the last line where it appears. | 57 This element is unstyled save for a background color of gray.. It contains an <
SPAN class="two">inline element of class <TT>two</TT>, giving it an aqua backgro
und and a -10px margin</SPAN>. Margins on inline elements does not affect line-
height calculations, so all lines in this element should have the same line-heig
ht. However, there should be a -10px margin to the left side of the inline box
in the first line it appears, and a -10px margin to the right side of the inline
element box in the last line where it appears. |
| 57 </P> | 58 </P> |
| 58 <P class="zero"> | 59 <P class="zero"> |
| 59 This element has a class of zero. | 60 This element has a class of zero. |
| 60 </P> | 61 </P> |
| 61 </TD></TR></TABLE></BODY> | 62 </TD></TR></TABLE></BODY> |
| 62 </HTML> | 63 </HTML> |
| OLD | NEW |