Re: [css-houdini-drafts] [css-typed-om] .equals methods for CSSStyleValue subclasses

Unifying idea behind strict equality is "what would a Value Object do for ==, if/when that exists?" - it'll type-check then check for equality of the bytes in the underlying typed array.  That gives us our current answer.

Loose equality can be achieved today by casting both to a known type and then calling .equals(), so it's almost just sugar.  (Not quite - comparing non-trivial calcs can't be done that way.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/325#issuecomment-294667499 using your GitHub account

Received on Tuesday, 18 April 2017 03:42:39 UTC