Skip to content

[css-typed-om] Is using a constructed expression of the form 1px/1px invalid as a <number>  #10733

@weinig

Description

@weinig

The WPT test css/css-typed-om/stylevalue-subclasses/cssScale.tentative.html requires that the following throw an exception:

let coord = new CSSMathProduct(CSS.px(1), new CSSMathInvert(CSS.px(1)));
let scale = new CSSScale(coord, 0);

with a description calling the product "an invalid division by px/px".

I can't find where (or if) this is required by the current CSS Typed OM draft (and it may just be an invalid test, it is marked tentative), but may be missing it.

Should this be invalid?

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