[whatwg] Selectors within <style scoped>
rolandsteiner at google.com
Fri Jun 17 00:10:06 PDT 2011
On Fri, Jun 17, 2011 at 2:45 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 6/17/11 1:39 AM, Roland Steiner wrote:
>> Having another scoped stylesheet under an element further up.
> Why does that matter for the way rules in _this_ sheet are treated?
The :scope <http://dev.w3.org/2006/webapi/selectors-api2/#scope>
pseudo-class *must* match any element that is a contextual reference
so :scope is ambiguous if you have several scoping elements as ancestors.
:scope in a nested sheet, meant to limit the rule to the nested scoping
element, may instead match against an enclosing scoping element. Again, see
the example I mailed earlier.
More information about the whatwg