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:
1.6 Contextual selectors
</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 <STYLE type=
"text/css">
10 P {color: navy; font-family: serif;}
11 HTML BODY TABLE P {color: purple; font-family: sans-serif;}
12 EM, UL LI LI {color: green;}
17 <BODY><P>The style declarations which apply to the text below are:
</P>
18 <PRE>P {color: navy; font-family: serif;}
19 HTML BODY TABLE P {color: purple; font-family: sans-serif;}
20 EM, UL LI LI {color: green;}
25 This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table.
28 This sentence should be normal for its section, except for the last word, which should be
<EM>green
</EM>.
31 <LI><EM>Hello.
</EM> The first
"hello" should be green, but this part should be black.
33 <LI>This should be green.
38 <TABLE border
cellspacing=
"0" cellpadding=
"3" class=
"tabletest">
40 <TD colspan=
"2" bgcolor=
"silver"><STRONG>TABLE Testing Section
</STRONG></TD>
43 <TD bgcolor=
"silver"> </TD>
45 This sentence should be navy serif in the first half of the page, but purple and sans-serif in the table.
48 This sentence should be normal for its section, except for the last word, which should be
<EM>green
</EM>.
51 <LI><EM>Hello.
</EM> The first
"hello" should be green, but this part should be black.
53 <LI>This should be green.
56 </TD></TR></TABLE></BODY>