Testing Fifth Testable Statement of Section 2.0 of CSS1 Spec
-
5. Pseudo-elements are used to address sub-parts of elements, while
pseudo-classes allow style sheets to differentiate between different
element types.
"PASS" CRITERIA:
If statement #5 above is passed, then:
This link is lime if unvisited; the pseudo-class is
"A:link {color: lime}". This link is
maroon if visited; the pseudo-class is "A:visited {color: maroon}".
The differentiation is between different instances of "A".
The first line of this (and all) paragraphs should have oblique font style.
Also all paragraphs should have big first letters.
The remaining lines should be UA-default. The pseudo-element applied is
"P:first-line {font-style: oblique}".
This addresses a sub-part of the element "p".
T
he first
letter of this paragraph has a large "T" to start.
The pseudo-element
applied is "P:first-letter {font-size: 200%; float-left;}". Everything
else is UA-default.
This addresses a sub-part of the element "p".
Your browser rendering of this page should be similar to this
reference image or to this reference
image.