float-shrink-to-fit-vlr-009.xht (1722B)
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 (height: auto) in 'vertical-lr' 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' applying on logical width must not reduce content but size to fit to its content. In this test, 'L' and 'R' glyphs must be rendered." name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 div#test-floated-left 19 { 20 color: green; 21 float: left; 22 font: 50px/1 Ahem; /* computes to 50px/50px */ 23 height: auto; 24 writing-mode: vertical-lr; 25 } 26 27 div.inner-green-border-bottom 28 { 29 border-bottom: green solid 1em; 30 } 31 32 div#reference-red-overlapped 33 { 34 background-color: red; 35 height: 100px; 36 position: relative; 37 width: 100px; 38 z-index: -1; 39 } 40 ]]></style> 41 </head> 42 43 <body> 44 45 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 46 47 <div id="test-floated-left"> 48 49 <div class="inner-green-border-bottom">L</div> 50 51 <div class="inner-green-border-bottom">R</div> 52 53 </div> 54 55 <div id="reference-red-overlapped"></div> 56 57 </body> 58 </html>