Skip to content

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

Closed
@achristensen07

Description

@achristensen07

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions