CSS1 Test Suite: 1.1 Containment in HTML


[Previous] [Next] [Section] [Contents] [Specification]
Last Updated: 12 June 1998

The style declarations which apply to the text below are:

<LINK rel="stylesheet" type="text/css" href="linktest.css" title="Link1">
<LINK rel="alternate stylesheet" type="text/css" href="linktest2.css" title="Link2">
@import url(imptest1.css);
@import "imptest1a.css";
UL {color: red;}
.four {color: purple;}
@import url(imptest2.css);


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 sheet "Link2" has been selected via the user agent.

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 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 sheet "Link2" 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 dark green 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).


[Previous] [Next] [Section] [Contents] [Specification]