1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
4 <TITLE>CSS1 Test Suite:
3.2 Cascading Order
</TITLE>
5 <META http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <META http-equiv=
"Content-Style-Type" content=
"text/css">
8 <LINK rel=
"stylesheet" type=
"text/css" media=
"screen" href=
"../resources/base.css">
9 <LINK rel=
"stylesheet" type=
"text/css" HREF=
"../resources/linktest.css">
10 <STYLE type=
"text/css">
13 UL LI LI {color: gray;}
14 LI.red {color: green;}
15 UL LI.mar {color: #
660000;}
16 UL LI#gre {color: green;}
18 .test {color: purple;}
19 .one {text-decoration: line-through;}
24 <BODY><P>The style declarations which apply to the text below are:
</P>
25 <PRE><LINK
rel=
"stylesheet" type=
"text/css" HREF=
"../resources/linktest.css">
28 UL LI LI {color: gray;}
29 LI.red {color: green;}
30 UL LI.mar {color: #
660000;}
31 UL LI#gre {color: green;}
33 .test {color: purple;}
34 .one {text-decoration: line-through;}
39 <LI>This list item should be blue...
40 <LI>...and so should this; neither should be purple.
42 <LI>This list item should be gray...
43 <LI>...as should this....
44 <LI class=
"red">...but this one should be green.
46 <LI class=
"mar">This ought to be dark red...
47 <LI ID=
"gre">...this green...
51 <P style=
"color: blue;">
52 This sentence should be blue (STYLE attr.).
55 This sentence should be purple [
<CODE>class=
"test"</CODE>].
58 This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported).
62 <TABLE border
cellspacing=
"0" cellpadding=
"3" class=
"tabletest">
64 <TD colspan=
"2" bgcolor=
"silver"><STRONG>TABLE Testing Section
</STRONG></TD>
67 <TD bgcolor=
"silver"> </TD>
69 <LI>This list item should be blue...
70 <LI>...and so should this; neither should be purple.
72 <LI>This list item should be gray...
73 <LI>...as should this....
74 <LI class=
"red">...but this one should be green.
76 <LI class=
"mar">This ought to be dark red...
77 <LI ID=
"gre">...this green...
81 <P style=
"color: blue;">
82 This sentence should be blue (STYLE attr.).
85 This sentence should be purple [
<CODE>class=
"test"</CODE>].
88 This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported).
90 </TD></TR></TABLE></BODY>