- add third_party src.
[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 .zero {background-color: silver; margin: 0;}
11 .one {margin: 25px; background-color: aqua;}
12 .two {margin: -10px; background-color: aqua;}</STYLE>
13
14 </HEAD>
15
16 <BODY><P>The style declarations which apply to the text below are:</P>
17 <PRE>.zero {background-color: silver; margin: 0;}
18 .one {margin: 25px; background-color: aqua;}
19 .two {margin: -10px; background-color: aqua;}
20 </PRE>
21 <HR>
22 <P class="zero">
23 This element has a class of zero.
24 </P>
25 <P style="background-color: gray;">
26 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.
27 </P>
28 <P class="zero">
29 This element has a class of zero.
30 </P>
31 <P style="background-color: gray;">
32 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.
33 </P>
34 <P class="zero">
35 This element has a class of zero.
36 </P>
37
38
39 <TABLE border cellspacing="0" cellpadding="3" class="tabletest">
40 <TR>
41 <TD colspan="2" bgcolor="silver"><STRONG>TABLE Testing Section</STRONG></TD>
42 </TR>
43 <TR>
44 <TD bgcolor="silver">&nbsp;</TD>
45 <TD><P class="zero">
46 This element has a class of zero.
47 </P>
48 <P style="background-color: gray;">
49 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.
50 </P>
51 <P class="zero">
52 This element has a class of zero.
53 </P>
54 <P style="background-color: gray;">
55 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.
56 </P>
57 <P class="zero">
58 This element has a class of zero.
59 </P>
60 </TD></TR></TABLE></BODY>
61 </HTML>