Scoped style sheets.

One more thing about <style scoped />.

What would be a specificity of CSS rules in scoped style sheet?
Question is in markup:

<html>
<style>
   body #content p { color:red; }
<body>
   <div #content>
     <style scoped>
         p { color:green; }
     </style>
     <p>what would be the color of this text?</p>
   </div>
</body>
</html>

It appears as <style scoped> should always be more specific than rules 
in just a <style>.
Yes/no?

-- 
Andrew Fedoniouk.

http://terrainformatica.com

Received on Monday, 14 July 2008 22:51:35 UTC