float-rgt-orthog-htb-in-vrl-003.xht (1602B)
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: orthogonal floated right in vertical-rl context</title> 8 9 <meta name="DC.date.created" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" /> 10 <meta name="DC.date.modified" content="2017-02-17T09:54:03+11:00" scheme="W3CDTF" /> 11 12 <!-- 13 Inspired by the test in 14 http://lists.w3.org/Archives/Public/www-style/2016Nov/0044.html 15 --> 16 17 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 18 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" /> 19 <link rel="match" href="float-rgt-orthog-htb-in-vrl-003-ref.xht" /> 20 21 <meta content="This test checks the horizontal position of an orthogonal floated right block box inside a vertical-rl parent. The orthogonal floated right block box must be put as far to the right as possible inside the vertical-rl line box." name="assert" /> 22 23 <style type="text/css"><![CDATA[ 24 html 25 { 26 writing-mode: vertical-rl; 27 } 28 29 div#vertical-parent 30 { 31 border: orange solid 8px; 32 font-size: 32px; 33 line-height: 1.25; /* computes to 40px */ 34 } 35 36 div#orthog-htb-float-right 37 { 38 background-color: blue; 39 color: white; 40 float: right; 41 writing-mode: horizontal-tb; 42 } 43 ]]></style> 44 45 </head> 46 47 <body> 48 49 <div id="vertical-parent">VRL parent 50 <div id="orthog-htb-float-right">HTB floated right</div> 51 </div> 52 53 </body> 54 </html>