Bugzilla – Bug 15457
Computed value of 'content' property seems undefined for :first-line and :first-letter
Last modified: 2012-12-04 00:51:09 UTC
Reported by Simon Sapin.
The Computed Value line of the 'content' property defined in 12.2 (http://www.w3.org/TR/CSS2/generate.html#content) says:
# On elements, always computes to 'normal'. On :before and
# :after, if 'normal' is specified, computes to 'none'.
# Otherwise, for URI values, the absolute URI; for attr()
# values, the resulting string; for other keywords, as
This appears to omit the cases of the :first-line and :first-letter pseudo-elements. This is a consequence of the spec's convention of using the word "elements" to mean "elements or pseudo-elements". However, in this instance, the effect is jarring since treating :before and :after as if they were not covered by the first sentence fools the reader into thinking that no pseudo-element is covered by that sentence.
Conversation begins: http://lists.w3.org/Archives/Public/www-style/2011Nov/0797.html
Bug description: http://lists.w3.org/Archives/Public/www-style/2011Dec/0113.html