Skip to content
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

Impossible to negate CSSNumeric value directly #921

Closed
Schahen opened this issue Jul 21, 2021 · 0 comments
Closed

Impossible to negate CSSNumeric value directly #921

Schahen opened this issue Jul 21, 2021 · 0 comments
Labels
Milestone

Comments

@Schahen
Copy link
Collaborator

Schahen commented Jul 21, 2021

This work as expected:

bottom((-10).percent)

While this does not:

bottom(-10.percent)

Even though first version is recommended - and IDE will even suggest to wrap the negative value, I don't see a reason why we should not support the second form - it's cheap and we already override bunch of operators

@Schahen Schahen added the web label Jul 21, 2021
@Schahen Schahen added this to the CSS API alpha milestone Jul 21, 2021
mareklangiewicz pushed a commit to mareklangiewicz/compose-jb that referenced this issue Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant