[css-houdini-drafts] [css-typed-om] CSSPerspective serialization should wrap negative values inside calc (#1069)

achristensen07 has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] CSSPerspective serialization should wrap negative values inside calc ==
http://wpt.live/css/css-typed-om/stylevalue-serialization/cssTransformValue.tentative.html has a test that verifies the serialization of a CSSPerspective with a negative value should be something like "perspective(calc(-1px))" but implementing the current spec in https://bugs.webkit.org/show_bug.cgi?id=239483 got me "perspective(-1px)".  In https://github.com/w3c/css-houdini-drafts/issues/420 we seem to have decided to allow negative values and I believe Chromium's implementation adds this calc in SSPerspective::ToCSSValue.  Either we should change the spec to handle negative values in this way or we should change the test to reflect the spec.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1069 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 19 April 2022 18:19:37 UTC