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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/floats-030.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: Position of floated elements in relation to previous el ements</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#float-pos ition" title="9.5.1 Positioning the float: the 'float' property"/>
7 <link rel="match" href="floats-030-ref.xht" />
8
9 <meta name="flags" content="image" />
10 <meta name="assert" content="Outer top of a floating box cannot be highe r than the outer top of any block or floated box generated by an element earlier in the source document." />
11 <style type="text/css">
12 #d1
13 {
14 border: solid 5px black;
15 margin: 10px;
16 height: 150px;
17 }
18 #span1, img
19 {
20 height: 1in;
21 width: 1in;
22 }
23 #span1
24 {
25 background-color: orange;
26 float: left;
27 margin-top: 10px;
28 padding-top: 10px;
29 }
30 </style>
31 </head>
32 <body>
33 <p>Test passes if the orange box is within the black box, below the word s "Filler Text 1", and to the left of both the blue box and the words "Filler Te xt 2".</p>
34 <div id="d1">
35 <div>Filler Text 1</div>
36 <span>Filler Text 2</span>
37 <img alt="blue box" src="support/blue15x15.png" />
38 <span id="span1"></span>
39 </div>
40 </body>
41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698