forked from mirrors/gecko-dev
Automatic update from web-platform-testsSupport CSSStyleValues in StylePropertyMap.set. (Reland) In StyleValueToCSSValue, when checking whether a certain CSSStyleValue matches the property in question, we now ask the registration (via CSSOMTypes) if the CSSStyleValue matches. If it doesn't match, we throw a TypeError like for normal properties. If it does match, the CSSStyleValue is stringified, tokenized, and set on the style rule as tokens. I have postponed support for <color> and <transform-function>, because CSSUnsupportedStyleValue currently does not handle registered custom properties at all. This is appropriate to fix in a separate CL. Note that, because the string version of StylePropertyMap.set also uses StyleValueToCSSValue, it will no longer be possible to set registered custom properties with a string--even if the syntax is matched. A subsequent CL will fix this. R=futhark@chromium.org Bug: 641877 Change-Id: Ib5c31640f81e957620339c9bdf617ab1af5d3d47 Reviewed-on: https://chromium-review.googlesource.com/1179153 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#584024} -- wpt-commits: b6f1c190818648dc0c33eb7ada54bf3f209fc938 wpt-pr: 12544 |
||
|---|---|---|
| .. | ||
| support | ||
| idlharness.html | ||
| META.yml | ||
| property-cascade.html | ||
| register-property-syntax-parsing.html | ||
| register-property.html | ||
| registered-properties-inheritance.html | ||
| registered-property-computation.html | ||
| registered-property-cssom.html | ||
| registered-property-initial.html | ||
| typedom.tentative.html | ||
| unit-cycles.html | ||
| url-resolution.html | ||
| var-reference-registered-properties-cycles.html | ||
| var-reference-registered-properties.html | ||