different-block-flow-dir-001.xht (1494B)
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: descendant inline with a different 'writing-mode' value</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/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" /> 11 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 12 13 <meta content="This test checks that if an inline box has a different block flow direction than its containing block then its display computes to 'inline-block' in which case its specified width and specified height are not ignored and have to be rendered." name="assert" /> 14 15 <style type="text/css"><![CDATA[ 16 span#inner 17 { 18 background-color: green; 19 color: green; 20 height: 6.25em; 21 vertical-align: top; 22 width: 6.25em; 23 writing-mode: vertical-rl; 24 } 25 26 div#reference-overlapped-red 27 { 28 background-color: red; 29 bottom: 6.25em; 30 height: 6.25em; 31 position: relative; 32 width: 6.25em; 33 z-index: -1; 34 } 35 ]]></style> 36 </head> 37 38 <body> 39 40 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 41 42 <div id="test-overlapping-green"> 43 <span id="outer"><span id="inner">I</span></span> 44 </div> 45 46 <div id="reference-overlapped-red"></div> 47 48 </body> 49 </html>