Description[Typed CSSOM]Get computed values for registered custom properties
Previously StylePropertyMap::get used to throw for custom properties. That exception has been moved into InlineStylePropertyMap::getAllInternal(AtomicString customPropertyName ...), and StylePropertMap::get now works for ComputedStylePropertyMap.
I've simplified StylePropertyMap::get & StylePropertyMap::has somewhat. StylePropertyMap::getAll is now the only StylePropertyMap method that directly calls getAllInternal.
Relative URLs do not work for custom properties, so the layout test has to work around that. Bug for the issue is here https://bugs.chromium.org/p/chromium/issues/detail?id=618165
Computed style for custom properties that are URL images seems to have null values for all its attributes, but a CSS property (e.g. background-image) that is specified as var(<that custom property>) has proper values for its attributes in the computed style value. See LayoutTests/typedcssom/computedstyle/custom-properties.html, test case t2. I don't know if that is a bug or not.
BUG=648495
Patch Set 1 #Patch Set 2 : Tidy up and add tests #Patch Set 3 : Add test #Patch Set 4 : remove unneeded comment #Patch Set 5 : test whitespace #
Total comments: 10
Patch Set 6 : Fix unregistered props and registered but unset props #Messages
Total messages: 17 (11 generated)
|