Skip to content

[css-typed-om] Should type of CSSMathNegate be the same as its argument? #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
darrnshn opened this issue Nov 12, 2017 · 1 comment
Closed

Comments

@darrnshn
Copy link
Collaborator

According to the spec, the type of a CSSMathNegate is the same as the type of its argument but with entries negated. So CSSMathNegate(1px) has type [ length -> -1 ], but -1px has type [ length -> 1 ]. Should the type of CSSMathNegate just be the type of its argument?

@tabatkins
Copy link
Member

Oh shoot, yeah, it should be the same type. It just negates the values; the type is left unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants