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

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

For rules in the <style scoped> you don't need to search.  For style="" 
attributes on elements within a style scope, you are right that you 
won't know what your scope element is (although in Gecko we do know that 
the element is in a style scope) and will have to traverse up to find it.

Received on Wednesday, 26 February 2014 23:09:42 UTC