ortho-htb-alongside-vrl-floats-010.xht (2701B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Writing Modes Test: positioning of an orthogonal (horizontal-tb) block alongside vertical-rl floats</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="bookmark" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1283721" title="Bug 1283721: Incorrect positioning of orthogonal (horizontal-tb) block alongside vertical-rl floats" /> 11 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" /> 12 <link rel="match" href="ortho-htb-alongside-vrl-floats-010-ref.xht" /> 13 14 <!-- 15 The 'horizontal-tb' equivalent of this test is 16 http://www.gtalbot.org/BugzillaSection/Bug1283721-new-block-form-ctxt-alongside-floats-004.html 17 --> 18 19 <meta content="image" name="flags" /> 20 <meta content="This test checks that non-positioned block boxes created after the float box flow vertically as if the float did not exist. In this test, the orange block box, which creates a new block formatting context, should flow next to the earliest float that offers sufficient (logical width) space: in this test, this is the blue rectangle." name="assert" /> 21 <meta name="DC.date.created" content="2016-07-04T09:54:03+11:00" scheme="W3CDTF" /> 22 <meta name="DC.date.modified" content="2016-07-21T09:54:03+11:00" scheme="W3CDTF" /> 23 24 <style type="text/css"><![CDATA[ 25 html 26 { 27 writing-mode: vertical-rl; 28 } 29 30 div 31 { 32 width: 100px; 33 } 34 35 div#first-blue-float 36 { 37 background-color: blue; 38 clear: left; 39 float: left; 40 height: 25%; 41 } 42 43 div#second-olive-float-with-clear 44 { 45 background-color: olive; 46 clear: left; 47 float: left; 48 height: 50%; 49 } 50 51 div#third-fuchsia-float-with-clear 52 { 53 background-color: fuchsia; 54 clear: left; 55 float: left; 56 height: 75%; 57 } 58 59 div#orange-horiz-tb 60 { 61 background-color: orange; 62 height: 50%; 63 writing-mode: horizontal-tb; 64 } 65 ]]></style> 66 67 </head> 68 69 <body> 70 71 <p><img src="support/ortho-htb-alongside-vrl-floats-002-exp-res.png" width="300" height="36" alt="Image download support must be enabled" /></p> 72 73 <!-- 74 The image says: 75 Test passes if the orange rectangle 76 is below the blue rectangle. 77 --> 78 79 <div id="first-blue-float"> </div> 80 81 <div id="second-olive-float-with-clear"> </div> 82 83 <div id="third-fuchsia-float-with-clear"> </div> 84 85 <div id="orange-horiz-tb"> </div> 86 87 </body> 88 </html>