W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: <style scoped> and the cascade

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Wed, 7 Mar 2012 16:45:15 +0100
Message-ID: <D55480EBE3744E89B1968F28127E1050@FREMYD2>
To: "HTML WG" <www-html@w3.org>
Cc: "Boris Zbarsky" <bzbarsky@MIT.EDU>, "CSS 3 W3C Group" <www-style@w3.org>
My take on Scoped Stylesheets :

@Boris: Can I please ask you to forward this mail to the HTML WG if it 
doesn't appear there later today? I'm still not subscribed to the HTML WG 
mailing list but I would like to give my opinion on that point. I'm in the 
process of entering the mailing list but it seems the process can be quite 
long and last several days. Thank you in advance!

Best regards,

-----Message d'origine----- 
From: Boris Zbarsky
Sent: Wednesday, March 07, 2012 7:37 AM
Cc: www-style list
Subject:  and the cascade

I've been looking into scoped stylesheets, and I'm not sure that the way
the spec currently places them in the CSS cascade makes sense.  If the
intent is for them to be used for styling a particular subtree, it seems
like they should probably come later than global document sheets in the
cascade; otherwise you can end up with global sheets accidentally
overriding scoped styles, which makes it difficult to really use scoped
styles effectively.

Of course the counterargument could be made that the opposite behavior
would disallow document-global sheets from "fixing up" problems from
scoped styles.

Perhaps the cascading order should be:

   document normal rules
   scoped normal rules
   scoped !important rules
   document !important rules


ccing www-style, but this discussion should probably happen on the
htmlwg list, since that's where scoped styles are defined...

Received on Wednesday, 7 March 2012 15:45:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:13 UTC