CSS2 Test Suite: 5.2 Selector Syntax

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

.cl1:first-line strong {color: red;}
.cl2em {color: red;}
.cl2+.cl3 {color: green;}
.cl3  +  .cl4 {color: green;}

[cl1] The emphasized text in the first line of this element should NOT be red, but the same color as the text in the element.

[cl2] The emphasized text in this element should NOT be red, but the same color as the text in the element.

[cl3] The text in this element should be green.

[cl4] The text in this element should be green.


[index page] [section] [Previous] [Next] [Specification]