summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht
blob: 8bd1a2a9ac8b883f16ae87e2bc91b3dc081886f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: margin-bottom</title>
  <meta name="flags" content="ahem" />
  <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-bottom"/>
  <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
  <link rel="match" href="c5503-mrgn-b-000-ref.xht" />

  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
  <style type="text/css"><![CDATA[
   .test { font: 10px/1 Ahem; width: 10em; border: solid black; padding: 0; background: yellow; color: orange; }
   .zero {background-color: teal; margin-bottom: 0;}
   .one {margin-bottom: 5.29166mm; background-color: aqua;}
   .two {margin-bottom: 20px; background-color: blue;}
   .three {margin-bottom: 2em; background-color: aqua;}
   .four {margin-bottom: 20%; background-color: teal;}
   .five {margin-bottom: 20px;}
   .six {margin-bottom: -10px; background-color: aqua;}
   p, ul, li {margin: 0; padding: 0; list-style:none;}

   .control { border: solid black; padding: 0; background: red; }
   .control .teal { background: teal; }
   .control .aqua { background: aqua; }
   .control .blue { background: blue; }
   .control .yellow { background: yellow; }
   .control .long { width: 70px; height: 10px; background: orange; }
   .control .short { width: 40px; height: 10px; background: orange; }
   .control .blank { width: 100px; height: 20px; }
  ]]></style>
  <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'"/>
 </head>
 <body>
  <p>The two diagrams below should be identical, with no red present.</p>
  <table>
   <tr>
    <td class="test">
     <p class="zero">
      xxxxxxx
     </p>
     <p class="zero">
      xxxx
     </p>
     <p class="one">
      xxxxxxx xxxx
     </p>
     <p class="two">
      xxxxxxx xxxx
     </p>
     <p class="three">
      xxxxxxx xxxx
     </p>
     <p class="four">
      xxxxxxx xxxx
     </p>
     <ul class="two">
      <li>xxxxxxx</li>
      <li>xxxx</li>
      <li class="five">xxxxxxx</li>
      <li>xxxx</li>
     </ul>
     <p class="zero">
      xxxxxxx xxxx
     </p>
     <p class="six">
      xxxxxxx xxxx
     </p>
     <p class="zero">
      xxxx
     </p>
    </td>
    <td class="control">
     <div class="teal"><div class="long"></div><div class="short"></div></div>
     <div class="aqua"><div class="long"></div><div class="short"></div></div>
     <div class="yellow"><div class="blank"></div></div>
     <div class="blue"><div class="long"></div><div class="short"></div></div>
     <div class="yellow"><div class="blank"></div></div>
     <div class="aqua"><div class="long"></div><div class="short"></div></div>
     <div class="yellow"><div class="blank"></div></div>
     <div class="teal"><div class="long"></div><div class="short"></div></div>
     <div class="yellow"><div class="blank"></div></div>
     <div class="blue"><div class="long"></div><div class="short"></div><div class="long"></div></div>
     <div class="blue"><div class="blank"></div></div>
     <div class="blue"><div class="short"></div></div>
     <div class="yellow"><div class="blank"></div></div>
     <div class="teal"><div class="long"></div><div class="short"></div></div>
     <div class="aqua"><div class="long"></div></div>
     <div class="teal"><div class="short"></div></div>
    </td>
   </tr>
  </table>
 </body>
</html>