float-vlr-011.xht (1681B)
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: 'float: left' and 'float: right' in a 'vertical-lr' block formating context (basic)</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <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" /> 11 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 12 13 <meta content="ahem image" name="flags" /> 14 <meta content="This test checks that a floated left box and a floated right box in a containing block with 'writing-mode' set to 'vertical-lr' will be respectively floated at the line-left side of its line box and floated at line-right of its line box." name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 div#wrapper 19 { 20 background: red url("support/pattern-gr-rg-100x100.png") no-repeat; 21 color: transparent; 22 font: 50px/1 Ahem; /* computes to 50px/50px */ 23 height: 100px; 24 width: 100px; 25 writing-mode: vertical-lr; 26 } 27 28 div#floated-right 29 { 30 color: green; 31 float: right; 32 } 33 34 div#floated-left 35 { 36 color: green; 37 float: left; 38 } 39 ]]></style> 40 </head> 41 42 <body> 43 44 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 45 46 <div id="wrapper"> 47 <div id="floated-right">R</div>A B <div id="floated-left">L</div> 48 </div> 49 50 </body> 51 </html>