W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] Selectors within <style scoped>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 16 Jun 2011 14:14:01 -0700
Message-ID: <BANLkTin7_5R1R-mZSH8zigvPWj6nqr0_TrzOiPS9u1Ksgif_qw@mail.gmail.com>
On Thu, Jun 16, 2011 at 1:48 PM, David Hyatt <hyatt at apple.com> wrote:
> Do you actually mean try out both ":scope" tacked on to the end of the rule as well as ":scope " (note the space indicating a descendant selector) tacked on to the beginning?
> So for example, #foo { } would turn into #foo:scope, :scope #foo { } thus allowing it to match either the scope or a descendant of the scope?

No, it's an if/else.  "#foo" would be equivalent to ":scope #foo".  On
the other hand, "#foo :scope" would be unaltered.

Received on Thursday, 16 June 2011 14:14:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC