summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht')
-rw-r--r--testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht94
1 files changed, 94 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht b/testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht
new file mode 100644
index 0000000000..8bd1a2a9ac
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/css1/c5503-mrgn-b-000.xht
@@ -0,0 +1,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>