@@ -481,9 +481,6 @@ <h3 id=cascade><span class=secno>4.2. </span> Cascading Declarations</h3>
481481 < li > Normal override declarations < a href ="#DOM-LEVEL-2-STYLE "
482482 rel =biblioentry > [DOM-LEVEL-2-STYLE]<!--{{!DOM-LEVEL-2-STYLE}}--> </ a >
483483
484- < li > Inline style attributes < a href ="#CSSSTYLEATTR "
485- rel =biblioentry > [CSSSTYLEATTR]<!--{{!CSSSTYLEATTR}}--> </ a >
486-
487484 < li > Normal author declarations
488485
489486 < li > Normal user declarations
@@ -499,13 +496,17 @@ <h3 id=cascade><span class=secno>4.2. </span> Cascading Declarations</h3>
499496 < dd > If a declaration belongs to a ruleset with a < a
500497 href ="http://www.w3.org/TR/selectors4/#scoping "> scoped selector</ a > , the
501498 element it is scoped to can affect the cascade. For the purpose of this
502- step, all other declarations are considered to be scoped to the root
503- element.
499+ step, declarations from style attributes < a href ="#CSSSTYLEATTR "
500+ rel =biblioentry > [CSSSTYLEATTR]<!--{{!CSSSTYLEATTR}}--> </ a > are considered
501+ to be scoped to the element with the attribute, and all other
502+ declarations are considered to be scoped to the root element.
504503 < p > If the < a
505504 href ="http://www.w3.org/TR/selectors4/#scoping-element "> scoping
506505 elements</ a > of two declarations have an ancestor/descendant
507506 relationship, the declaration whose scoping element is the descendant
508- wins.
507+ wins. If one declaration is from a style attribute on an element and the
508+ other is from a ruleset scoped to that element, the declaration in the
509+ style attribute wins.
509510
510511 < dt > Specificity
511512
0 commit comments