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

Re: [shadowdom] specificity of ::distributed()

From: mozer <xmlizer@gmail.com>
Date: Thu, 18 Apr 2013 21:19:15 +0200
Message-ID: <CAKdwC_Mya34=BUe8Cv3HmU+NYO6ku_ocF8EJ7_9e2dP+CbeKGw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Alan Stearns <stearns@adobe.com>, "www-style@w3.org list" <www-style@w3.org>
Hi Tab,

Is there any tool somewhere doing this computation ?

Thanks

Xmlizer

2013/4/18 Tab Atkins Jr. <jackalmage@gmail.com>:
> On Wed, Apr 17, 2013 at 1:10 PM, Alan Stearns <stearns@adobe.com> wrote:
>> Hey all,
>>
>> I found myself wondering about ::distributed() specificity today. Do both
>> sides contribute somehow? I think these are all valid uses of
>> ::distributed(), and if they all match the same element it would be useful
>> to know which of these wins out over the others:
>>
>> 1 - ::distributed(#id)
>> 2 - ::distributed(.class)
>> 3 - #id::distributed(#id)
>> 4 - .class::distributed(#id)
>
> I think it should be a pass-through, so that the specificities are:
>
> 1. (1,0,0)
> 2. (0,1,0)
> 3. (2,0,0)
> 4. (1,1,0)
>
> ~TJ
>
Received on Thursday, 18 April 2013 19:19:42 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 18 April 2013 19:19:43 UTC