W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: a recall for a missing combinator

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 16 Nov 2011 06:57:28 -0800
Message-ID: <CAAWBYDC2baVQy1R7NUD4_qe6Q1+1EKTCdp9+JQVEducWPYZ+9Q@mail.gmail.com>
To: Niels Matthijs <niels.matthijs@internetarchitects.be>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
On Wed, Nov 16, 2011 at 12:32 AM, Niels Matthijs
<niels.matthijs@internetarchitects.be> wrote:
>> @scope article.product {
>>   @stop article;
>>   header { ... }
>> }
>
> As long as you do @stop article, section; this might work. For something I'd
> be using a lot, it's still a pretty complex syntax though :)

Unfortunately, you can't get around that - you're asking for something
relatively complex.  If it was based purely on nesting, the earlier
suggestion of a combinator would work, but it's not - the lower
<header> is not nested inside the upper <header>.  You're wanting to
apply rules, but prevent them from falling too deeply down the tree.
To do that, you need to identify both the "start" and the "end", so
your rules can apply solely within the "donut" that you've defined.

~TJ
Received on Wednesday, 16 November 2011 14:58:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT