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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-125.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 <head>
4 <title>CSS Test: Margin Collapsing: clear (on a self-collapsing block with a m argin)</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/025.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-125-ref.xht" />
9
10 <style type="text/css">
11 table, td { padding: 0; border-spacing: 0; vertical-align: top; }
12 .comparator { border-spacing: 1em; }
13 .test, .control { border: solid; background: red; }
14 .test .container { display: block; margin: 0; width: 8em; background: lime; }
15 .test .float { float: left; margin: 0; height: 4em; width: 4em; background: a qua; }
16 .test .clear { clear: left; display: block; background: red; margin: 2em 0; }
17 .test .block { display: block; margin: 1em 0 0; border-top: 2em solid yellow; }
18 .control .square { height: 4em; width: 4em; }
19 .control .rectangle { height: 2em; width: 8em; }
20 .control .lime { background: lime; }
21 .control .aqua { background: aqua; }
22 .control .yellow { background: yellow; }
23 </style>
24 </head>
25 <body>
26 <p>The following two rectangles should be identical.</p>
27 <table class="comparator">
28 <tr>
29 <td class="test">
30 <div class="container">
31 <div class="float"> </div>
32 <div class="clear"> </div>
33 <div class="block"> </div>
34 </div>
35 </td>
36 <td class="control">
37 <table>
38 <tr>
39 <td class="square aqua"></td>
40 <td class="square lime"></td>
41 </tr>
42 <tr>
43 <td colspan="2" class="rectangle yellow"></td>
44 </tr>
45 </table>
46 </td>
47 </tr>
48 </table>
49
50
51 </body>
52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698