Re: what happens if first-line contains markup?
From: email@example.com (Lauren Wood)
| The definition of the "first-line" pseudo-element states that it can
| only be attached to a block-level element, but not what happens if the
| first line of this block-level element (e.g. P) contains markup, e.g.
| EM. Is it ignored in favour of the "first-line" formatting?
Hmm. Presumably the normal cascade order applies for determining which
applies, but there is a wrinkle: the spec doesn't seem to say clearly
how pseudo-elements are counted in the specificity calculation. If you
assume they count the same as other elements, and the other factors are
the same, then whichever came last in the STYLE specification would
Note, by the way, that the spec does indicate how to handle "order of
appearance" for STYLE attributes - they are appended at the end of the
STYLE element (but since they are specified as if by ID, they would
presumably be most-specific in any case).
At least, that's what I would expect, based on the spec.
motorola/mcg urbana design center 1101 e. university, urbana, il 61801
phone: 217-384-8589 fax: 217-384-8550
internet mail: firstname.lastname@example.org