Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / css1 / box_properties / margin_inline.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2 <HTML>
3 <HEAD>
4 <TITLE>CSS1 Test Suite: 5.5.05 margin</TITLE>
5 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <META http-equiv="Content-Style-Type" content="text/css">
7
8 <LINK rel="stylesheet" type="text/css" media="screen" href="../resources/base.css">
9 <STYLE type="text/css">
10 body {overflow: hidden;}
11 .zero {background-color: silver; margin: 0;}
12 .one {margin: 25px; background-color: aqua;}
13 .two {margin: -10px; background-color: aqua;}</STYLE>
14
15 </HEAD>
16
17 <BODY><P>The style declarations which apply to the text below are:</P>
18 <PRE>.zero {background-color: silver; margin: 0;}
19 .one {margin: 25px; background-color: aqua;}
20 .two {margin: -10px; background-color: aqua;}
21 </PRE>
22 <HR>
23 <P class="zero">
24 This element has a class of zero.
25 </P>
26 <P style="background-color: gray;">
27 This element is unstyled save for a background color of gray..  It contains an <SPAN class="one">inline element of class <TT>one</TT>, giving it an aqua background and a 25px margin</SPAN>.  Margins on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.  However, there should be a 25px margin to the left side of the inline box in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears.
28 </P>
29 <P class="zero">
30 This element has a class of zero.
31 </P>
32 <P style="background-color: gray;">
33 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 background 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-height.  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.
34 </P>
35 <P class="zero">
36 This element has a class of zero.
37 </P>
38
39
40 <TABLE border cellspacing="0" cellpadding="3" class="tabletest">
41 <TR>
42 <TD colspan="2" bgcolor="silver"><STRONG>TABLE Testing Section</STRONG></TD>
43 </TR>
44 <TR>
45 <TD bgcolor="silver">&nbsp;</TD>
46 <TD><P class="zero">
47 This element has a class of zero.
48 </P>
49 <P style="background-color: gray;">
50 This element is unstyled save for a background color of gray..  It contains an <SPAN class="one">inline element of class <TT>one</TT>, giving it an aqua background and a 25px margin</SPAN>.  Margins on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.  However, there should be a 25px margin to the left side of the inline box in the first line it appears, and a 25px margin to the right side of the inline element box in the last line where it appears.
51 </P>
52 <P class="zero">
53 This element has a class of zero.
54 </P>
55 <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 background 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-height.  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 class="zero">
59 This element has a class of zero.
60 </P>
61 </TD></TR></TABLE></BODY>
62 </HTML>