W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: [shadow-styling] Scoping at-rules like @font-face in scoped styled and shadow trees?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 26 Feb 2014 15:00:02 -0800
Message-ID: <CAAWBYDAPriPpZLdwtsvxuqbwSiuRRnSmTyXkG3D6zkPQj-9H+A@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: www-style list <www-style@w3.org>
On Wed, Feb 26, 2014 at 2:58 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Tab Atkins Jr. wrote:
>> This would mean that scoped stylesheets by themselves aren't affected,
>> since their nearest scoping root (using the above definition) isn't
>> their scoping element, but rather the document or their shadow root.
>> I suggest letting them work and define global names normally.  In
>> other words, what I'm describing here has nothing do with scoped
>> stylesheets at all (so we do option #1); it instead cares about the
>> vaguely-similar concepts of ID-scoping roots.
>
> Why?  I feel like scoped style sheets should work just like style sheets
> defined in shadow trees, for scoping of names.

Because it's harder and slower to do a tree-walk like that, where
jumping to an ID-scoping root is cheap.

Also, because it solves the shadow-DOM problem quite nicely, and I
don't care as much about scoped style sheets. ^_^

~TJ
Received on Wednesday, 26 February 2014 23:00:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC