W3C home > Mailing lists > Public > www-style@w3.org > March 2012

[css3-background] clarify which properties in this module apply to ::first-letter and ::first-line

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Wed, 07 Mar 2012 09:31:28 +0800
Message-ID: <4F56BA70.1040407@csail.mit.edu>
To: WWW Style <www-style@w3.org>
CSS2.1 says

[[
  The following properties apply to a :first-line pseudo-element: ...
background properties ... UAs may apply other properties as well.
]]

and

[[
  These are the properties that apply to :first-letter pseudo-elements:
... border properties ... background properties. UAs may apply other
properties as well.
]]

although it's not clear what "background properties" and "border
properties" mean in the context of CSS3 B&B. In particular,
'border-radius' is not a subproperty of 'border' and I heard the rumor
that 'border-radius' should have been called corner-radius so whether it
belongs to "border properties" is questionable. (I'll assume that
subproperties of 'background' introduced by CSS3 B&B such as
'background-size" count as "background properties" and hence apply to
both ::first-letter and ::first-line).

I think the spec should explicitly say that 'border-radius' applies to
::first-letter. From testing, Firefox13a, Chromium18 and IE9 but not
Opera12alpha supports 'border-radius' on ::first-letter (and none of
them on ::first-line). I have no idea about 'border-image' and
'box-decoration-break'.

(A side question out of curiosity: the spec says

  # The ‘box-shadow’ property applies to the ‘::first-letter’
  # pseudo-element, but not the ‘::first-line’ pseudo-element.

So, does this mean UA MUST NOT apply 'box-shadow' to '::first-line' or
UA MAY apply 'box-shadow' to '::first-line' (because of CSS2.1) ? )



Cheers,
Kenn
Received on Wednesday, 7 March 2012 01:31:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT