[css-typed-om] CSSPerspective serialization should wrap negative values inside calc · Issue #1069 · w3c/css-houdini-drafts (original) (raw)
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 #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.