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

Re: [css3-syntax] `}` in selector mode with three ore more open rules

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 26 Jan 2013 18:30:30 +0100
Message-ID: <510412B6.4090808@kozea.fr>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
Le 26/01/2013 18:25, Tab Atkins Jr. a écrit :
> On Sat, Jan 26, 2013 at 8:06 AM, Simon Sapin <simon.sapin@kozea.fr> wrote:
>> Hi,
>>
>> In 3.5.6. Selector mode:
>>
>>> } token
>>>
>>> If the stack of open rules has three or more items on it, pop the
>>> current rule. Switch to the current rule's content mode.
>>
>>
>> I just don’t understand this part. Why three? When is this behavior useful?
>> What does it even mean?
>
> The "three or more items" requirement ensures that the style rule
> isn't on the top level - it's nested at least one deep in some other
> rule.  (The stack will have the style rule, some grouping rule, then
> the stylesheet itself.)
>
> However, I have no idea why I would want the behavior described.  I
> presumably had some reason, but it seems really weird.  I'll have to
> think on it.


It was not obvious to me that the stylesheet is counted among the three. 
If there is a reason to keep this behavior, please add a some 
explanation for "three" in a note (and maybe the reason too).

-- 
Simon Sapin
Received on Saturday, 26 January 2013 17:31:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT