different-block-flow-dir-002.xht (1570B)
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#outer 17 { 18 vertical-align: top; 19 writing-mode: vertical-rl; 20 } 21 22 span#inner 23 { 24 background-color: green; 25 color: green; 26 height: 6.25em; 27 vertical-align: top; 28 width: 6.25em; 29 writing-mode: horizontal-tb; 30 } 31 32 div#reference-overlapped-red 33 { 34 background-color: red; 35 bottom: 6.25em; 36 height: 6.25em; 37 position: relative; 38 width: 6.25em; 39 z-index: -1; 40 } 41 ]]></style> 42 </head> 43 44 <body> 45 46 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 47 48 <div id="test-overlapping-green"> 49 <span id="outer"><span id="inner">I</span></span> 50 </div> 51 52 <div id="reference-overlapped-red"></div> 53 54 </body> 55 </html>