Skip to content

[css-typed-om] StylePropertyMap.set() is inconsistent with how it handles invalid values #1175

Description

@Calme1709

StylePropertyMap.set() removes the existing props[property] value (step 7) before creating internal representations for values (step 9), this means that if a TypeError is thrown while doing this the props[property] value will have been cleared without a replacement being set.

This is inconsistent with how other invalid values are handled, for example if values is invalid because more than one value was passed but the property is single-valued (step 3) props[property] will not be removed.

This definition also doesn't match the behavior observed in Chromium which leaves the original value untouched in this case.

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