CSS2 Test Suite: 5.12.1 :first-line

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

The style declarations contained within this page:

P:first-line {color: green;}
.cl2:first-line {font-size: 200%;}
.cl3:first-line {font-variant: small-caps;}


The first line of this paragraph, and only that one, should be green. If this precise combination does not occur, then the user agent has failed this test. Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line.

The first line of this paragraph, and only that one, should be a larger font size as well as green. If this precise combination does not occur, then the user agent has failed this test. Remember that in order to ensure a complete test, the paragraph must be displayed on more than one line. [cl2]

The first line of this paragraph, and only that one, should be displayed in small-caps style. Thus, if the first line is not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test (although the problem might be that small-caps is not supported by your browser). This is extra text included for the purposes of making the paragraph long enough to have more than one line. [cl3]


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