- From: Cameron McCormack <cam@mcc.id.au>
- Date: Thu, 27 Feb 2014 10:41:36 +1100
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: www-style list <www-style@w3.org>
Tab Atkins Jr. wrote: > You will have to search, unless you're saying that rules in *another* > <style scoped> with the same scoping element can't refer to the scoped > name. That would be inconsistent with allowing it in style='', and > inconsistent with what makes sense in a shadow root. Yeah you're right. >> 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. > > While we're talking about style='', this seems fragile. If this > allows arbitrary descendants to opt in, then it means that you can > accidentally co-opt it by inserting *another* scoped stylesheet > between the intended stylesheet and the element reffing the name. Sure, but then that's the same as co-opting uses of scoped() in a <style scoped> sheet if you insert another <style scoped> somewhere up the tree, isn't it? > Sticking to just ID-scoping roots avoids this, because those are very > intentional boundaries that are visible across the whole document, not > accidental ones meant to apply only to the contents of a single > stylesheet.
Received on Wednesday, 26 February 2014 23:42:10 UTC