html-precedence-004.xht (1258B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: User Stylesheets and non-CSS Presentational Hints</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/cascade/non-css/001.html" type="text/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> 8 <link rel="match" href="html-precedence-004-ref.xht" /> 9 10 <meta name="flags" content="userstyle" /> 11 12 <style type="text/css"> 13 .instructions { color: red; } 14 </style> 15 </head> 16 <body id="hixie-cascade-tests"> 17 <div class="instructions"> 18 <p>For this test, set your user stylesheet to the following:</p> 19 <pre> 20 /* User Stylesheet */ 21 #hixie-cascade-tests .instructions { display: none; } 22 #hixie-cascade-tests .red { color: red; } 23 #hixie-cascade-tests .green { color: green; } 24 #hixie-cascade-tests .normal { font-weight: normal; } 25 </pre> 26 </div> 27 <p><font color="green" class="red">This text should be green.</font></p> 28 <p><b class="normal">This text should</b> not be bold.</p> 29 <p class="green">This line should be green.</p> 30 </body> 31 </html>