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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/clear-clearance-calculation-001.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: Clearance calculations - clear box non-collapsing margi ns with larger margings than clearance</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-cont rol" />
7 <link rel="match" href="clear-clearance-calculation-001-ref.xht" />
8
9 <meta name="flags" content="ahem image" />
10 <meta name="assert" content="When a cleared element has more top margin than the height of the floated element the margin is collpased with previous in- flow children. The element is then placed at the point of the resulting collapse d margin." />
11 <!-- C1 = H-M2 -->
12 <!-- C2 = Max(M1, M2) - M1 - M2 -->
13 <style type="text/css">
14 div
15 {
16 font: 20px/1em Ahem;
17 width: 5em;
18 }
19 #parent
20 {
21 background: url('support/clear-clearance-calculation-001.png');
22 min-height: 6em;
23 }
24 div div
25 {
26 background: green;
27 height: 1em;
28 }
29 #div1
30 {
31 margin-bottom: 1em;
32 }
33 #div2
34 {
35 float: left;
36 margin: 0;
37 }
38 #div3
39 {
40 clear: left;
41 margin-top: 4em;
42 }
43 </style>
44 </head>
45 <body>
46 <p>Test passes if there is no red.</p>
47 <div id="parent">
48 <div id="div1"></div>
49 <div id="div2"></div>
50 <div id="div3"></div>
51 </div>
52 </body>
53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698