html-precedence-005.xht (1210B)
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/002.xml" type="application/xhtml+xml"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" /> 8 <meta name="flags" content="userstyle" /> 9 10 <style type="text/css"> 11 .instructions { color: red; } 12 </style> 13 </head> 14 <body id="hixie-cascade-tests"> 15 <div class="instructions"> 16 <p>For this test, set your user stylesheet to the following:</p> 17 <pre> 18 /* User Stylesheet */ 19 #hixie-cascade-tests .instructions { display: none; } 20 #hixie-cascade-tests .red { color: red; } 21 #hixie-cascade-tests .green { color: green; } 22 #hixie-cascade-tests .normal { font-weight: normal; } 23 </pre> 24 </div> 25 <p><font color="red" class="green">This text should be green.</font></p> 26 <p><b class="normal">This text should</b> not be bold.</p> 27 <p class="green">This line should be green.</p> 28 </body> 29 </html>