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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/floats-clear/floats-031.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 in line elements</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtal bot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-07-09 -->
7 <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"/>
8 <link rel="match" href="floats-031-ref.xht" />
9
10 <meta name="flags" content="image" />
11 <meta name="assert" content="Outer top of floating box cannot be higher than the top of any line-box containing a box generated by an element earlier in the source document." />
12 <style type="text/css">
13 div
14 {
15 border: solid 5px black;
16 font: 16px serif;
17 margin: 10px;
18 width: 550px;
19 }
20 #span1
21 {
22 background-color: orange;
23 float: left;
24 }
25 #span1, img
26 {
27 height: 0.5in;
28 width: 1in;
29 }
30 span span
31 {
32 display: inline-block;
33 width: 550px;
34 }
35 </style>
36 </head>
37 <body>
38 <p>Test passes if the orange rectangle is to the left of the "Filler Tex t" and the blue rectangle is to the right of the "Filler Text".</p>
39 <div>
40 <span><span></span>Filler Text Filler Text</span>
41 <img alt="blue box" src="support/blue15x15.png" />
42 <span id="span1"></span>
43 </div>
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698