[css3-cascade] style attribute should override scoped style sheets

http://dev.w3.org/csswg/css3-cascade/#cascade defines cascading for
scoped style sheets so that the depth of scope nesting increases
importance in the cascade (overriding specificity).  This is good.

However, it doesn't assign any extra bump to style attributes.
Previously style attributes were described as having extra
specificity, though their behavior was equivalent to being a
separate origin.

Now that scoping is a part of the cascade, I think style attributes
should have their role in the cascade be defined either in terms of
scoping or (my preference) as a separate origin, so that in this
HTML markup,

  <div>
    <!-- a scoped style sheet applying to the div and its contents -->
    <style scoped>
      p { color: red }
    </style>
    <p style="color: green">
      this should be green.
    </p>
  </div>

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂

Received on Sunday, 2 December 2012 08:20:41 UTC