W3C home > Mailing lists > Public > www-style@w3.org > February 2004

Re: [CSS21] response to issue 92

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>
Message-ID: <40329701.710824902@smtp.bjoern.hoehrmann.de>

* 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

  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 }

      <td>Shall this be green?</td>
      <td>Shall this be green?</td>

  Both cells are green in IE6, Opera 7.11 and Mozilla 1.3a.
Received on Wednesday, 11 February 2004 16:24:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:11 UTC