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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-157.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 <!-- This is similar to tests 022 and 023 --><head>
4 <title>CSS Test: Margin Collapsing: clear (varying margins)</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/057.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-157-ref.xht" />
9
10 <style type="text/css">
11 .test { border: solid; background: red; width: 8em; }
12 .container { background: lime; }
13 .float { float: left; height: 4em; width: 4em; background: aqua; }
14 .empty { margin: 1em; background: red; }
15 .clear { clear: left; border-bottom: 4em solid yellow; background: red; }
16 .a .clear { margin-top: 0em; }
17 .b .clear { margin-top: 1em; }
18 .c .clear { margin-top: 2em; }
19 </style>
20 </head>
21 <body>
22 <p>Test passes if there are 6 identical squares and <strong>no red</strong>.</ p>
23 <table>
24 <tr>
25 <td>
26 <div class="test a">
27 <div class="container">
28 <div class="float"> </div>
29 <div class="clear"> </div>
30 </div>
31 </div>
32 </td>
33 <td>
34 <div class="test b">
35 <div class="container">
36 <div class="float"> </div>
37 <div class="clear"> </div>
38 </div>
39 </div>
40 </td>
41 <td>
42 <div class="test c">
43 <div class="container">
44 <div class="float"> </div>
45 <div class="clear"> </div>
46 </div>
47 </div>
48 </td>
49 </tr>
50 <tr>
51 <td>
52 <div class="test a">
53 <div class="container">
54 <div class="float"> </div>
55 <div class="clear"> <div class="empty"> </div> </div>
56 </div>
57 </div>
58 </td>
59 <td>
60 <div class="test b">
61 <div class="container">
62 <div class="float"> </div>
63 <div class="clear"> <div class="empty"> </div> </div>
64 </div>
65 </div>
66 </td>
67 <td>
68 <div class="test c">
69 <div class="container">
70 <div class="float"> </div>
71 <div class="clear"> <div class="empty"> </div> </div>
72 </div>
73 </div>
74 </td>
75 </tr>
76 </table>
77
78 </body>
79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698