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 #4 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 paragraph should have small caps font style.
The remaining lines should be UA-default. The pseudo-element applied is
"P:first-line {font-style: small-caps}".
This addresses a sub-part of the element "p".
T
he first
two words of this paragraph have a large "T" to start,
followed by capital letters for the first two words. 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.