underline-mixed-vlr-003.xht (1504B)
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" lang="en"> 4 5 <head> 6 7 <title>CSS Writing Modes Test: 'text-decoration: underline' and mixed text</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/#line-mappings" title="7.5 Line-Relative Mappings" /> 11 <link rel="help" href="http://www.w3.org/TR/css-text-decor-3/#text-underline-position-property" title="2.6. Text Underline Position: the 'text-underline-position' property" /> 12 13 <meta content="This test checks that when latin and mongolian glyphs are used in mixed text-orientation (therefore with text centrally baseline-aligned), then the text-decoration of the parent box is used across the parent box." name="assert" /> 14 15 <style type="text/css"><![CDATA[ 16 div#vrl 17 { 18 font-size: 4em; 19 margin-left: 2em; 20 writing-mode: vertical-lr; 21 } 22 23 span#parent 24 { 25 text-decoration: underline; 26 } 27 28 span#child 29 { 30 color: transparent; 31 } 32 ]]></style> 33 34 </head> 35 36 <body> 37 38 <p>Test passes if there is <strong>one and only one vertical straight and unbroken line</strong>. Such line should have the same thickness over its entire length.</p> 39 40 <div id="vrl"><span id="parent"><span id="child" lang="mn">ᠨ<span lang="en">AB</span>ᠨ</span></span></div> 41 42 </body> 43 </html>