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

On Wed, Feb 26, 2014 at 2:58 PM, Cameron McCormack <> 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. ^_^


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