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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-023.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 xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>CSS Test: Margin collapsing - clearance applied to sibling</title >
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-ma rgins" />
7 <link rel="match" href="clearance-006-ref.xht" />
8
9 <meta name="flags" content="ahem image" />
10 <meta name="assert" content="If an in-flow block-level sibling (#div4) h as clearance applied to it, then it will not adjoin its top margin with the bott om margin of its previous in-flow sibling (#div2)." />
11 <style type="text/css">
12 div
13 {
14 font: 20px/1em Ahem;
15 width: 5em;
16 }
17 #div3
18 {
19 float: left;
20 height: 3em;
21 }
22 #div1
23 {
24 background: url('support/margin-collapse-4em-space.png');
25 height: 6em;
26 }
27 #div2
28 {
29 margin-bottom: 1em;
30 }
31 #div4
32 {
33 clear: both;
34 margin-top: 2em;
35 }
36 #div2, #div4
37 {
38 background: green;
39 height: 1em;
40 }
41 </style>
42 </head>
43 <body>
44 <p>Test passes if there is no red.</p>
45 <div id="div1">
46 <div id="div2"></div>
47 <div id="div3"></div>
48 <div id="div4"></div>
49 </div>
50 </body>
51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698