font-size-119.xht (1560B)
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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-24 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/size/002.xml" type="application/xhtml+xml"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" /> 9 <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-size-prop"/> 10 11 <style type="text/css"><![CDATA[ 12 13 .tests * { line-height: 0; border: none; margin: 0; padding: 0; display: block; } 14 .tests { margin: 20em 2em 0 2em; display: block; } 15 .text { display: inline; white-space: pre; } 16 17 .big { font-size: 20em; } 18 .xxlarge { font-size: xx-large; } 19 .smaller { font-size: smaller; } 20 21 .xxlarge > .text { background: red; font-weight: bold; } 22 .smaller > .text { background: white; } 23 .p { color: green; } 24 25 ]]></style> 26 <link rel="match" href="/css/CSS2/reference/ref-if-there-is-no-red.xht" /> 27 </head> 28 <body class="test"> 29 <p>Test passes if there is <strong>no red</strong>.</p> 30 <div class="tests"> 31 <div class="xxlarge"><div class="text"> </div></div> 32 <div class="big"><div class="smaller"><div class="text"> </div></div></div> 33 </div> 34 </body> 35 </html>