font-size-adjust-006.xht (1513B)
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 Fonts Test: font-size-adjust - a percentage value is invalid</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-fonts-3/#font-size-adjust-prop" title="3.6 Relative sizing: the font-size-adjust property" /> 11 <link rel="bookmark" href="https://lists.w3.org/Archives/Public/www-style/2015Mar/0282.html" title="[css-fonts] What does font-size-adjust for '0' look like?" /> 12 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 13 14 <meta content="ahem invalid" name="flags" /> 15 <meta content="This test checks that a percentage value is invalid and therefore must be ignored." name="assert" /> 16 17 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 18 <style type="text/css"><![CDATA[ 19 div#test-percent-value 20 { 21 color: green; 22 font: 100px/1 Ahem; /* computes to 100px/100px */ 23 font-size-adjust: 50%; 24 } 25 26 div#reference-overlapped-red 27 { 28 background-color: red; 29 bottom: 100px; 30 height: 100px; 31 position: relative; 32 width: 100px; 33 z-index: -1; 34 } 35 ]]></style> 36 37 </head> 38 39 <body> 40 41 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 42 43 <div id="test-percent-value">Z</div> 44 45 <div id="reference-overlapped-red"></div> 46 47 </body> 48 </html>