height-width-inline-non-replaced-vrl-002.xht (1893B)
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: height and width - inline non-replaced element in vertical writing-mode</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="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visudet.html#inline-width" title="10.3.1 Inline, non-replaced elements" /> 12 <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/visudet.html#inline-non-replaced" title="10.6.1 Inline, non-replaced elements" /> 13 <link rel="match" href="abs-pos-non-replaced-icb-vrl-008-ref.xht" /> 14 15 <meta content="ahem" name="flags" /> 16 <meta content="This test checks that height and width declarations do not apply to inline non-replaced elements in vertical writing-modes." name="assert" /> 17 18 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 19 <style type="text/css"><![CDATA[ 20 div#block 21 { 22 font: 100px/1 Ahem; /* computes to 100px/100px */ 23 height: 2em; 24 width: 4em; 25 writing-mode: vertical-rl; 26 } 27 28 div#inline 29 { 30 background-color: red; 31 color: red; 32 display: inline; 33 height: 2em; 34 width: 4em; 35 } 36 37 div#overlapping-green 38 { 39 background-color: green; 40 bottom: 200px; 41 height: 100px; 42 left: 300px; 43 position: relative; 44 width: 100px; 45 } 46 ]]></style> 47 </head> 48 49 <body> 50 51 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 52 53 <div id="block"> 54 <div id="inline">A</div> 55 </div> 56 57 <div id="overlapping-green"></div> 58 59 </body> 60 </html>