DescriptionAdd inline style in the element's scope.
Style attribute declarations were added in a separate scope after all
other author origins. Instead add style attribute declarations right after
collecting matching rules from the element's scope. This means that we can
override values set on the style attribute from outer scopes, like we can
with values from inner scope's stylesheet.
Without this fix, you would get green on orange below:
<style>html /deep/ span { color: green; background-color: lime }</style>
<host>
<host:root>
<style>span { color:red }</style>
<span style="background:orange">Green on orange?</span>
</host:root>
</host>
With this change, we will get green on lime.
The regression (issue 526634) was not relying on this, but it would be
more complex code to fix the regression without fixing the style attribute
cascading order.
R=kochi@chromium.org,hayato@chromium.org
BUG=526634
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201620
Patch Set 1 #
Messages
Total messages: 12 (3 generated)
|