[css-houdini-drafts] [css-typed-om-1] "equal numeric values" may return false when people might expect true

bzbarsky has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om-1] "equal numeric values" may return false when people might expect true ==
Consider the output of https://drafts.css-houdini.org/css-typed-om-1/#equal-numeric-value on these two values:

    CSSMathNegate(CSSMathSum(2px, 1em))
    CSSMathSum(-2px, -1em)

I believe you can produce those data structures, and that this algorithm will return false in this case, right?

I'm not sure I have a nice suggestion here, by the way; solving this in general is not trivial.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/682 using your GitHub account

Received on Friday, 16 February 2018 01:34:01 UTC