CSS1 Test Suite: 1.1 Containment in HTML

The style declarations which apply to the text below are:

    <LINK rel="stylesheet" type="text/css" href="linktest.css" title="Default SS">
    <LINK rel="alternate stylesheet" type="text/css" href="linktest2.css" title="Alternate SS">
    @import url(imptest1.css);
    @import "imptest1a.css";
    UL {color: red;}
    .four {color: purple;}
    @import url(imptest2.css);
    <!--
    P.six {color: green;}
    -->

This sentence should be underlined due to the linked style sheet `linktest.css`, the reference to which is shown above.

This sentence should NOT be underlined due to the linked style sheet `linktest2.css`, unless the external style sheet "Alternate SS" has been selected via the user agent.

- This sentence should be green due to an imported style sheet [`@import url(imptest1.css);`].
- This sentence should be purple due to an imported style sheet [`@import "imptest1a.css"`].
- This sentence should be green thanks to the STYLE attribute [`STYLE="color: green;"`].

This sentence should be purple, and it doesn't have a terminating paragraph tag.

1. This list should NOT be purple.
2. It should, instead, be black.
3. If it IS purple, then the browser hasn't correctly parsed the preceding paragraph.

This sentence should be black. If it is red, then the browser has inappropriately imported the styles from the file `imptest2.css` (see section 3.0 of the CSS1 specification for more details).

This paragraph should be green.

TABLE Testing Section
| This sentence should be underlined due to the linked style sheet `linktest.css`, the reference to which is shown above. This sentence should NOT be underlined due to the linked style sheet `linktest2.css`, unless the external style sheet "Alternate SS" has been selected via the user agent. This sentence should be green due to an imported style sheet [`@import url(imptest1.css);`]. This sentence should be purple due to an imported style sheet [`@import "imptest1a.css"`]. This sentence should be green thanks to the STYLE attribute [`STYLE="color: green;"`]. This sentence should be purple, and it doesn't have a terminating paragraph tag. This list should NOT be purple. It should, instead, be black. If it IS purple, then the browser hasn't correctly parsed the preceding paragraph. This sentence should be black. If it is red, then the browser has inappropriately imported the styles from the file `imptest2.css` (see section 3.0 of the CSS1 specification for more details). This paragraph should be green.