1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head><title>CSS1 Test Suite: 1.1 Containment in HTML</title>
3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4 <meta http-equiv="Content-Style-Type" content="text/css">
6 <link rel="stylesheet" type="text/css" media="screen" href="../resources/base.css">
7 <link rel="stylesheet" type="text/css" href="../resources/linktest.css" title="Default SS">
8 <link rel="alternate stylesheet" type="text/css" href="../resources/linktest2.css" title="Alternate SS">
9 <style type="text/css">
10 @import url(../resources/imptest1.css);
11 @import "../resources/imptest1a.css";
13 .four {color: purple;}
14 @import url(../resources/imptest2.css);
19 <body><p>The style declarations which apply to the text below are:</p>
20 <pre><LINK rel="stylesheet" type="text/css" href="linktest.css" title="Default SS">
21 <LINK rel="alternate stylesheet" type="text/css" href="linktest2.css" title="Alternate SS">
22 @import url(imptest1.css);
23 @import "imptest1a.css";
25 .four {color: purple;}
26 @import url(imptest2.css);
33 This sentence should be underlined due to the linked style sheet <code>linktest.css</code>, the reference to which is shown above.
36 This sentence should NOT be underlined due to the linked style sheet <code>linktest2.css</code>, <strong>unless</strong> the external style sheet "Alternate SS" has been selected via the user agent.
40 This sentence should be green due to an imported style sheet [<code>@import url(imptest1.css);</code>].
43 This sentence should be purple due to an imported style sheet [<code>@import "imptest1a.css"</code>].
45 <li style="color: green;">
46 This sentence should be green thanks to the STYLE attribute [<code>STYLE="color: green;"</code>].
50 This sentence should be purple, and it doesn't have a terminating paragraph tag.
52 <li>This list should NOT be purple.
53 </li><li>It should, instead, be black.
54 </li><li>If it IS purple, then the browser hasn't correctly parsed the preceding paragraph.
57 This sentence should be black. If it is red, then the browser has inappropriately imported the styles from the file <tt>imptest2.css</tt> (see <a href="http://www.w3.org/TR/REC-CSS1#the-cascade">section 3.0</a> of the CSS1 specification for more details).
60 This paragraph should be green.
64 <table border="1" cellspacing="0" cellpadding="3" class="tabletest">
66 <td colspan="2" bgcolor="silver"><strong>TABLE Testing Section</strong></td>
69 <td bgcolor="silver"> </td>
71 This sentence should be underlined due to the linked style sheet <code>linktest.css</code>, the reference to which is shown above.
74 This sentence should NOT be underlined due to the linked style sheet <code>linktest2.css</code>, <strong>unless</strong> the external style sheet "Alternate SS" has been selected via the user agent.
78 This sentence should be green due to an imported style sheet [<code>@import url(imptest1.css);</code>].
81 This sentence should be purple due to an imported style sheet [<code>@import "imptest1a.css"</code>].
83 <li style="color: green;">
84 This sentence should be green thanks to the STYLE attribute [<code>STYLE="color: green;"</code>].
88 This sentence should be purple, and it doesn't have a terminating paragraph tag.
90 <li>This list should NOT be purple.
91 </li><li>It should, instead, be black.
92 </li><li>If it IS purple, then the browser hasn't correctly parsed the preceding paragraph.
95 This sentence should be black. If it is red, then the browser has inappropriately imported the styles from the file <tt>imptest2.css</tt> (see <a href="http://www.w3.org/TR/REC-CSS1#the-cascade">section 3.0</a> of the CSS1 specification for more details).
98 This paragraph should be green.
100 </td></tr></tbody></table></body></html>