Re: what happens if first-line contains markup?

 From: lauren@sqwest.bc.ca (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
apply.

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.

scott

--
scott preece
motorola/mcg urbana design center	1101 e. university, urbana, il   61801
phone:	217-384-8589			  fax:	217-384-8550
internet mail:	preece@urbana.mcd.mot.com

Received on Tuesday, 25 June 1996 15:05:03 UTC