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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-018.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 - element with clearance</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="An element that has clearance applied to it will not collapse its top margin with its parent's bottom margin." />
11 <style type="text/css">
12 div
13 {
14 font: 20px/1em Ahem;
15 width: 5em;
16 }
17 #div1
18 {
19 background: url('support/margin-collapse-4em-space.png');
20 height: 6em
21 }
22 .class1
23 {
24 background: green;
25 height: 1em;
26 }
27 #div2
28 {
29 margin-bottom: 1em;
30 }
31 #div3
32 {
33 float: left;
34 height: 3em;
35 }
36 #div4
37 {
38 clear: both;
39 margin-top: 1em;
40 }
41 </style>
42 </head>
43 <body>
44 <p>Test passes if there is no red.</p>
45 <div id="div1">
46 <div class="class1"></div>
47 <div id="div2">
48 <div id="div3"></div>
49 <div id="div4"></div>
50 </div>
51 <div class="class1"></div>
52 </div>
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698