Skip to content

[css-typed-om][css-values] What context is CSSNumericValue.parse(...) considered to have for its parse? #10753

Open
@weinig

Description

@weinig

In most (I believe all other) cases, when parsing a calc() expression there is a known "context" which is needed to determine the type of percentage values. This is needed to figure out if the type should be a dimension with a percent hint (like when parsing a width property), or raw percentage (like when parsing scale).

With CSSNumericValue.parse(...) however, there is no specified context.

How are percentages supposed to be interpreted when parsed in this way?

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