font-size-118.xht (1331B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: CSS: sanity tests for relative keyword values of font-size</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/001.xml" type="application/xhtml+xml"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" /> 8 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-prop"/> 9 10 <style type="text/css"><![CDATA[ 11 12 .tests * { line-height: 0; border: none; margin: 0; padding: 0; display: block; } 13 .tests { margin: 10em 2em 2em 2em; display: block; } 14 .text { display: inline; white-space: pre; } 15 16 .big { font-size: 10em; } 17 .medium { font-size: medium; } 18 .smaller { font-size: smaller; } 19 20 .medium > .text { background: red; } 21 .smaller > .text { background: green; } 22 23 ]]></style> 24 </head> 25 <body class="test"> 26 <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> 27 <div class="tests"> 28 <div class="medium"><div class="text"> </div></div> 29 <div class="big"><div class="smaller"><div class="text"> </div></div></div> 30 </div> 31 </body> 32 </html>