- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Wed, 11 Feb 2004 22:23:20 +0100
- To: www-style@w3.org
- Cc: fantasai <fantasai@escape.com>
* Bert Bos wrote: >Your e-mail: > http://www.w3.org/mid/3F875337.6080406@escape.com > :first-line > # The :first-line pseudo-element can only be attached to > # a block-level element. > elem { display: block; } > elem:first-line { color: blue; } > elem.special { display: inline; } > say what? > >CSS WG response: > We don't see the issue. Pseudo-elements are attached to element type selectors or the universal selector; neither of them has a notion of beeing block-level, hence the attachment of pseudo-elements cannot be constraint to this notion. From <http://www.w3.org/mid/3f3fbed2.307705026@smtp.bjoern.hoehrmann.de> (member-only): [...] And there is "The :first-line pseudo-element can only be attached to a block-level element". It is not clear what this means with respect to conformance. If ::first-line is attached to a non-blocklevel element, does this restriction mean that a user agent must not apply the styles? For example, <style type="text/css"> td:first-line { color: green } </style> <table> <tr> <td>Shall this be green?</td> <td>Shall this be green?</td> </tr> </table> Both cells are green in IE6, Opera 7.11 and Mozilla 1.3a. [...]
Received on Wednesday, 11 February 2004 16:24:23 UTC