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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/margin-collapse-035.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
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6
7 <title>CSS Test: margin collapsing - clear</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10 <link rel="author" title="Matt Bradley" href="http://www.inventpartners.com/co ntent/contact" />
11 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins" />
12 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" / >
13 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
14 <meta content="" name="flags" />
15 <meta content="Margin-top of following siblings of a block on which 'clear' ha s been set (to a different value than 'none') must not be substracted when calcu lating clearance. When an element's own margins collapse, and that element has h ad clearance applied to it, its top margin collapses with the adjoining margins of following siblings." name="assert" />
16
17 <style type="text/css"><![CDATA[
18 div#overlapped-red
19 {
20 background-color: red;
21 height: 100px;
22 position: absolute;
23 width: 100px;
24 z-index: -1;
25 }
26
27 div#overlapping-green-container
28 {
29 background-color: green;
30 width: 100px;
31 }
32
33 div#floated-left
34 {
35 float: left;
36 height: 1px;
37 }
38
39 div#floated-right
40 {
41 float: right;
42 height: 1px;
43 }
44
45 div#clear-both {clear: both;}
46
47 div#following-sibling {margin-top: 99px;}
48 ]]></style>
49
50 </head>
51
52 <body>
53
54 <p>Test passes if there is a filled green square and <strong>no red</strong>.< /p>
55
56 <div id="overlapped-red"></div>
57
58 <div id="overlapping-green-container">
59 <div id="floated-left"></div>
60
61 <div id="floated-right"></div>
62
63 <div id="clear-both"></div>
64
65 <div id="following-sibling"></div>
66 </div>
67
68 </body>
69 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698