float-shrink-to-fit-vrl-002.xht (1523B)
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' and 'shrink-to-fit' logical width in 'vertical-rl' context</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" name="flags" /> 14 <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 div.floated-left 19 { 20 background-color: red; 21 float: left; 22 font: 100px/1 Ahem; /* computes to 100px/100px */ 23 writing-mode: vertical-rl; 24 } 25 26 div.left-border 27 { 28 border-left: red solid 1em; 29 } 30 31 div#reference-overlapped-green 32 { 33 background-color: green; 34 height: 100px; 35 position: relative; 36 width: 100px; 37 z-index: -1; 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 class="floated-left"> 47 <div class="left-border"></div> 48 </div> 49 50 <div id="reference-overlapped-green"></div> 51 52 </body> 53 </html>