outline-inline-block-vrl-006.html (1436B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Writing Modes Test: outline layout and inline-block and vertical-rl writing-mode</title> 4 <link rel="match" href="reference/outline-inline-block-vrl-006.html" /> 5 <link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2016-01-14 --> 7 <link rel="help" title="7.1. Principles of Layout in Vertical Writing Modes" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" /> 8 <link rel="help" title="18.4 Dynamic outlines: the 'outline' property" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/ui.html#dynamic-outlines" /> 9 <meta content="ahem" name="flags" /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style> 12 .container { 13 color:transparent; 14 font:50px/1 Ahem; 15 height:6em; 16 writing-mode:vertical-rl; 17 } 18 .outline { 19 color:orange; 20 display:inline-block; 21 outline:blue solid 2px; 22 } 23 </style> 24 <p>Test passes if the inside of 3 blue rectangles is orange. 25 <div class="container"> 26 <!-- 27 Additional div to ensure that the origin of the containing block of the 28 outline span is different from the origin of the writing mode root. 29 --> 30 <div>123<span class="outline">XXX</span></div> 31 <div>12345 6<span class="outline">XX</span></div> 32 <div>1</div> 33 <div><span class="outline">1</span></div> 34 <div>1</div> 35 </div>