DescriptionMETER with -webkit-appearance:none should be rendered with the normal CSS way.
This CL changes the behavior of METER element with -webkit-appearance:none.
Before this CL:
-webkit-appearance:none had almost no effect because -webkit-appearance:meter
has no theme painting.
After this CL:
-webkit-appearance:none disables all of UA-provided rendering of METER elements.
meter::-webkit-meter-* pseudo elements don't work, and web authors need to
render METER elements by themselves.
This behavior follows appearance:none defined by css-ui-4 [1].
Implementation:
Because we can't update METER Shadow DOM structure in response to CSS style
resolution, a METER has the following structure.
METER
#shadow-root
MeterInnerElement pseudo=-webkit-meter-inner-element
DIV pseudo=-webkit-meter-bar
DIV pseudo=-webkit-meter-*-value
MeterFallbackElement
CONTENT
When the METER has -webkit-appearance:meter, MeterFallbackElement has display:
none. Otherwise, MeterInnerElement has display:none.
[1] https://www.w3.org/TR/css-ui-4/#appearance-switching
BUG=51182
Committed: https://crrev.com/5bfffca95444ba872b0a7faeaf956e92ab18639f
Cr-Commit-Position: refs/heads/master@{#390324}
Patch Set 1 : #Patch Set 2 : Remove theme changes, etc. #Patch Set 3 : Drop LayoutTheme change, add TODO comments #Messages
Total messages: 16 (10 generated)
|