W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: [css3-lists] ::marker should inherit from the element

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Fri, 05 Apr 2013 15:28:05 +0200
To: www-style@w3.org
Message-ID: <op.wu2k03aybunlto@oyvinds-desktop>
On Tue, 26 Mar 2013 19:05:07 +0100, Simon Sapin <simon.sapin@exyr.org>  

> Le 26/03/2013 18:31, Tab Atkins Jr. a écrit :
>> On Tue, Mar 26, 2013 at 7:52 AM, Simon Sapin <simon.sapin@exyr.org>  
>> wrote:
>>> Section 12.1 of CSS 2.1 has the following text:
>>>> The :before and :after pseudo-elements inherit any inheritable
>>>> properties from the element in the document tree to which they are
>>>> attached.
>>> ::marker should do the same, but I can’t find it specified in  
>>> css3-lists. I
>>> suggest adding a sentence similar to the one quoted above to section 6.
>> I'm happy to add this, but we need to add a more generic statement to
>> the Pseudo-Elements spec (when we write it) that pseudo-elements
>> inherit from their superior parent.
> Yes, a more general rule would be better of course.

This isn't necessarily going to be a problem, but I'll note that we saw  
some deviations from this rule in implementations when the list-item  
implementation was reworked in Presto some time ago.

For instance, given a list-item with text-transform:uppercase and  
list-style-type:lower-alpha, only IE (at least version 8, which was the  
one tested at the time) propagates text-transform to the marker.

Similarly, neither Gecko nor Presto have the marker inherit  
font-variant:small-caps. These are probably the two main properties for  
which inheritance might be a little surprising, since the list styles  
already specify casing.

Øyvind Stenhaug
Opera Software ASA
Received on Friday, 5 April 2013 13:28:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:28 UTC