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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Wed, 28 Mar 2012 01:51:53 +0000
To: fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <9710FCC2E88860489239BE0308AC5D171294E7CD@TK5EX14MBXC264.redmond.corp.microsoft.com>
http://www.w3.org/TR/2011/REC-CSS2-20110607/selector.html#first-line-pseudo

# The :first-line pseudo-element is similar to an inline-level element, but with certain
# restrictions. The following properties apply to a :first-line pseudo-element: font
# properties, color property, background properties, 'word-spacing', 'letter-spacing',
# 'text-decoration', 'text-transform', and 'line-height'. UAs may apply other properties
# as well.

http://www.w3.org/TR/2011/REC-CSS2-20110607/selector.html#first-letter

# These are the properties that apply to :first-letter pseudo-elements: font properties,
# 'text-decoration', 'text-transform', 'letter-spacing', 'word-spacing' (when appropriate),
# 'line-height', 'float', 'vertical-align' (only if 'float' is 'none'), margin properties, padding
# properties, border properties, color property, background properties. UAs may apply
# other properties as well.

http://www.w3.org/TR/css3-background/#the-border-shorthands



fantasai:
>   All background properties
>   All border-radius properties
>   All border-image properties
>
> How did you interpret the conformance requirements on those?

My interpretation is thus:
1. For the 3 sets of properties above, there is no normative text in the CSS3 Background module.  Thus CSS2.1 is the normative reference.
2. CSS3 Background, section 4.4 ["Border Shorthand Properties"] suggests that "border properties" is expanded to include border-radius and border-image.
3. Conformance requires supporting background properties in both first-line and first-letter.
4. Given #2, conformance requires supporting border-radius in first-letter.
5. Given #2, conformance requires supporting border-image in first-letter.
6. Conformant UA may apply border-radius and border-image to first-line (i.e. not a requirement but not prohibited).


Received on Wednesday, 28 March 2012 01:52:50 GMT

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