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: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 27 Feb 2014 10:09:08 +1100
Message-ID: <530E7414.7020000@mcc.id.au>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
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

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