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

Re: <style scoped> and the cascade

From: Roland Steiner <rolandsteiner@google.com>
Date: Thu, 8 Mar 2012 13:45:49 +0900
Message-ID: <CACFPSpjri4OSLy127FCkxeE1Qi-Gbgdk_74H=CnyiOVDGQd5+A@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Ian Hickson <ian@hixie.ch>, HTML WG <public-html@w3.org>, www-style list <www-style@w3.org>
On Thu, Mar 8, 2012 at 08:50, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> Everything you need should already be there - just add the concept of
> 'scope' to the author origin, such that for any two scoped styles A
> and B, if B's scoping element is a descendant of A's scoping element,
> B's styles have a higher weight than A's styles. (If A and B don't
> have an ancestor/descendant relationship, the relative weighting is
> undefined, but they can't ever apply to the same elements anyway.
> Note: we should make sure this invariant remains true.)

FWIW, one case where this invariant may be violated is with XBL's

- Roland
Received on Thursday, 8 March 2012 04:46:37 UTC

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