Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-158.xht

Issue 2818213003: Import css21/floats-clear W3C CSS Test Suite (Closed)
Patch Set: update TestExpectations Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
3 <!-- variant of 023 --><head>
4 <title>CSS Test: Margin Collapsing: clear (with nearby collapse-through block) </title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/marg in-collapse/058.html" type="text/html"/>
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins" />
8 <link rel="match" href="margin-collapse-158-ref.xht" />
9
10 <style type="text/css">
11 table, td { padding: 0; border-spacing: 0; }
12 .comparator { border-spacing: 1em; }
13 .test, .control { background: red; }
14 .test .container { display: block; margin: 0; width: 6em; background: yellow; border: solid; }
15 .test .float { float: left; margin: 0; height: 2em; width: 3em; background: o range; }
16 .test .empty { display: block; background: red; margin: 2em 0; }
17 .test .clear { clear: left; display: block; border-top: 2em solid orange; mar gin-top: 1em; }
18 .control table { border: solid; }
19 .control .square { height: 2em; width: 3em; }
20 .control .thin { height: 2em; width: 6em; }
21 .control .thick { height: 2em; width: 6em; }
22 .control .yellow { background: yellow; }
23 .control .orange { background: orange; }
24 </style>
25 </head>
26 <body>
27 <p>Test passes if the 2 squares are identical.</p>
28 <table class="comparator">
29 <tr>
30 <td class="test">
31 <div class="container">
32 <div class="empty"> </div>
33 <div class="float"> </div>
34 <div class="empty"> </div>
35 <div class="clear"> </div>
36 </div>
37 </td>
38 <td class="control">
39 <table>
40 <tr>
41 <td colspan="2" class="thick yellow"></td>
42 </tr>
43 <tr>
44 <td class="square orange"></td>
45 <td class="square yellow"></td>
46 </tr>
47 <tr>
48 <td colspan="2" class="thin orange"></td>
49 </tr>
50 </table>
51 </td>
52 </tr>
53 </table>
54
55
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698