- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 08 Mar 2012 00:33:20 -0500
- To: www-style@w3.org
On 3/7/12 11:45 PM, Roland Steiner wrote: > On Thu, Mar 8, 2012 at 08:50, Tab Atkins Jr. <jackalmage@gmail.com > <mailto:jackalmage@gmail.com>> wrote: > > Everything you need should already be there - just add the concept of > 'scope' to the author origin, such that for any two scoped styles A > and B, if B's scoping element is a descendant of A's scoping element, > B's styles have a higher weight than A's styles. (If A and B don't > have an ancestor/descendant relationship, the relative weighting is > undefined, but they can't ever apply to the same elements anyway. > Note: we should make sure this invariant remains true.) > > > FWIW, one case where this invariant may be violated is with XBL's > 'apply-binding-sheets'. I think for the apply-binding-sheets case we should treat the relevant scoped stylesheets as having the bound element or the anonymous tree root as a parent (which would sort of match what they are scoped to). -Boris
Received on Thursday, 8 March 2012 05:33:49 UTC