fune/testing/web-platform/tests/css/css-properties-values-api
Anders Hartvoll Ruud 82d8ceb845 Bug 1484154 [wpt PR 12544] - Support CSSStyleValues in StylePropertyMap.set. (Reland), a=testonly
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
2018-08-21 21:05:44 +00:00
..
support Bug 1470231 [wpt PR 11611] - Correctly resolve relative URLs for registered custom properties., a=testonly 2018-07-11 07:57:56 +01:00
idlharness.html Bug 1479439 [wpt PR 9774] - Update the css-properties-values-api IDL file, a=testonly 2018-07-31 13:05:42 +00:00
META.yml Bug 1476293 [wpt PR 12024] - Add spec links to META.yml, a=testonly 2018-07-29 18:49:42 +01:00
property-cascade.html Bug 1475688 [wpt PR 11965] - [css-properties-values-api] Add test for cascading behavior., a=testonly 2018-07-29 18:46:24 +01:00
register-property-syntax-parsing.html Bug 1473670 [wpt PR 11808] - [css-properties-values-api] Add support for <transform-function> syntax., a=testonly 2018-07-24 21:46:09 +00:00
register-property.html Bug 1473441 [wpt PR 11792] - [css-properties-values-api] Require PropertyDescriptor.inherits., a=testonly 2018-07-11 08:04:53 +01:00
registered-properties-inheritance.html Bug 1473441 [wpt PR 11792] - [css-properties-values-api] Require PropertyDescriptor.inherits., a=testonly 2018-07-11 08:04:53 +01:00
registered-property-computation.html Bug 1473670 [wpt PR 11808] - [css-properties-values-api] Add support for <transform-function> syntax., a=testonly 2018-07-24 21:46:09 +00:00
registered-property-cssom.html Bug 1473441 [wpt PR 11792] - [css-properties-values-api] Require PropertyDescriptor.inherits., a=testonly 2018-07-11 08:04:53 +01:00
registered-property-initial.html Bug 1473670 [wpt PR 11808] - [css-properties-values-api] Add support for <transform-function> syntax., a=testonly 2018-07-24 21:46:09 +00:00
typedom.tentative.html Bug 1484154 [wpt PR 12544] - Support CSSStyleValues in StylePropertyMap.set. (Reland), a=testonly 2018-08-21 21:05:44 +00:00
unit-cycles.html Bug 1472612 [wpt PR 11748] - Disallow font-relative units when resolving var() for font-size., a=testonly 2018-07-20 13:04:36 +00:00
url-resolution.html Bug 1472624 [wpt PR 11749] - [css-properties-values-api]: Drop .tentative from URL resolution test., a=testonly 2018-07-11 08:03:23 +01:00
var-reference-registered-properties-cycles.html Bug 1473441 [wpt PR 11792] - [css-properties-values-api] Require PropertyDescriptor.inherits., a=testonly 2018-07-11 08:04:53 +01:00
var-reference-registered-properties.html Bug 1482933 [wpt PR 12426] - [css-properties-values-api] Test var()-references w.r.t. registered lists., a=testonly 2018-08-15 16:50:38 +00:00