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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-clearance-calculation-004.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: clear and clearance calculation - margin collapsing</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" / >
11 <link rel="match" href="clear-clearance-calculation-004-ref.xht" />
12
13 <meta content="" name="flags" />
14 <meta content="With clear: left, the top border edge of the last paragraph mus t be below the floating paragraph, i.e., 50px lower. That means that the margin- bottom of the first paragraph must not collapse with the margin-top of the last paragraph and clearance must be added such that clearance + margin-top of last p aragraph = 50px, i.e., clearance = 50px - margin-top of last paragraph = 50px - 75px = - 25px." name="assert" />
15
16 <style type="text/css"><![CDATA[
17 body {margin: 8px;}
18
19 #overlapped-red
20 {
21 background-color: red;
22 height: 100px;
23 left: 8px;
24 position: absolute;
25 right: 8px;
26 top: 108px;
27 z-index: -1;
28 }
29
30 #firstParg
31 {
32 height: 25px;
33 margin-bottom: 25px;
34 margin-top: 0px;
35 }
36
37 #floatingParg
38 {
39 float: left;
40 height: 50px;
41 margin: 0;
42 }
43
44 #lastParg
45 {
46 background-color: green;
47 clear: left;
48 height: 100px;
49 margin-top: 75px;
50 }
51 ]]></style>
52
53 </head>
54
55 <body>
56
57 <div id="overlapped-red"></div>
58
59 <p id="firstParg"></p>
60
61 <p id="floatingParg"></p>
62
63 <p id="lastParg"></p>
64
65 <p>Test passes if there is a wide green rectangle above and <strong>no red</st rong>.</p>
66
67 </body>
68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698