Implement Focus UI
[framework/web/webkit-efl.git] / LayoutTests / css2.1 / t100303-c412-blockw-00-d-ag.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3  <head>
4   <title>CSS 2.1 Test Suite: Horizontal Formatting</title>
5   <style type="text/css">
6    .test { font: 10px/1 Ahem; margin: 1em; border: solid 1em; width: 100px; background: red no-repeat; color: green; }
7    .test p, .test div { margin-top: 0; margin-bottom: 0; }
8    .test.a { background-image: url(support/css1test412b-a.png); }
9    .test.b { background-image: url(support/css1test412b-b.png); }
10    .test.b p { background-color: green; }
11    p.one {margin-left: 10px;}
12    div.two {margin-left: 10px;}
13    p.three {margin-left: 0; width: 50%; margin-right: auto;}
14    p.four {margin-left: auto; width: 50%; margin-right: auto;}
15    p.five {margin-left: auto; width: 50%; margin-right: 0;}
16    p.six {margin-left: auto; width: auto; margin-right: 0;}
17    p.seven {margin-left: 0; width: auto; margin-right: auto;}
18    p.eight {margin-left: auto; width: auto; margin-right: auto;}
19    p.nine {padding-left: auto; padding-right: auto; margin-left: 0; margin-right: 0; width: 50%;}
20    p.ten {margin-left: auto; width: 100%; margin-right: auto;}
21   </style>
22   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth" title="10.3.3 Block-level, non-replaced elements in normal flow">
23   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top',  'margin-right',  'margin-bottom', 'margin-left', and 'margin'">
24  </head>
25  <body>
26   <p>There should be no red below, just two green squares.</p>
27   <div class="test a"> <!-- this tests the text alignment -->
28    <p class="one"> X </p>
29    <div class="two">
30     <p class="one"> X </p>
31    </div>
32    <p class="three"> X </p>
33    <p class="four"> X </p>
34    <p class="five"> X </p>
35    <p class="six"> X </p>
36    <p class="seven"> X </p>
37    <p class="eight"> X </p>
38    <p class="nine"> X </p>
39    <p class="ten"> X </p>
40   </div>
41   <div class="test b"> <!-- this tests the size of the content area -->
42    <p class="one"> X </p>
43    <div class="two">
44     <p class="one"> X </p>
45    </div>
46    <p class="three"> X </p>
47    <p class="four"> X </p>
48    <p class="five"> X </p>
49    <p class="six"> X </p>
50    <p class="seven"> X </p>
51    <p class="eight"> X </p>
52    <p class="nine"> X </p>
53    <p class="ten"> X </p>
54   </div>
55  </body>
56 </html>