Skip to content

[css-typed-om] Serialization of 2D CSSScale should never skip the second value #1161

@gmta

Description

@gmta

Regarding the serialization of CSSScale, the second value should always be serialized, even if its value is equal to the first.

Test case:

<!DOCTYPE html>
<style>
#a {
    transform: scale(1.5);
}
</style>
<div id="a"></div>
<script>
console.log(a.computedStyleMap().get("transform").toString());
</script>

Both Chrome and Safari output scale(1.5, 1.5) as the serialized value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions