Skip to content

Missing specific subclass type definitions in StylePropertyMapReadOnly.get() return type #1863

Open
@ophirbucai

Description

@ophirbucai

Currently, StylePropertyMapReadOnly.get() returns undefined | CSSStyleValue for all CSS properties. This doesn't reflect the CSS Typed OM specification where different properties return specific subclasses like CSSUnitValue, CSSKeywordValue, and CSSTransformValue.

I have a PR ready that addresses this by narrowing down the return types based on property names.

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