W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: <style scoped> and the cascade

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 7 Mar 2012 23:41:58 -0800
Message-ID: <CAAWBYDAetd4=mT-u0a2FctpYMO5G-mYGMBxQu18WqyV8wSqnzg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On Mar 7, 2012 9:14 PM, "Boris Zbarsky" <bzbarsky@mit.edu> wrote:
>
> On 3/7/12 6:50 PM, Tab Atkins Jr. wrote:
>>
>> Alternately, just say that document order is increasing weight order.
>
> That's not actually what I proposed, and my example was carefully
constructed to demonstrate the difference.  Again:
>
>
>  <div>
>    <style id="a" scoped></style>
>    <p><style id="b" scoped></style></p>
>    <style id="c" scoped></style>
>  </div>
>
> Document order here is "a", "b", "c".  Cascade order should be "rules
from 'a' and 'c'" followed by "rules from 'b'".

Sorry, I meant "document order of scoping element", which matches what you
propose.

~TJ
Received on Thursday, 8 March 2012 07:42:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT