-
Notifications
You must be signed in to change notification settings - Fork 719
[css-values-4] Should simplification of Sum nodes convert to canonical units? #4505
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
Comments
There's also some ambiguity about whether the function name is preserved on the root if it simplifies down to a numerical value. Should |
I think reduction of |
Some concrete examples where implementations seem to disagree. How do the following serialize?
Questions:
@tabatkins the note at https://drafts.csswg.org/css-values-4/#calc-serialize says this is under discussion, but is there anything more recent than 2016? |
That's triggered by step 3, where you simplify all the children of the node;
It's definitely not clear, and I'm not sure what's ideal, actually! That's why I opened #4399 to talk about it. ^_^ I'll move your questions/examples over to that issue, and since the original question from this issue has been answered, I'll close this one. |
Uh oh!
There was an error while loading. Please reload this page.
At https://drafts.csswg.org/css-values-4/#calc-simplification Step 7.2, it says:
Note the "identical units". This is different from Product nodes, which simplify down (when possible) to a value represented in the result's canonical unit.
Step 4 says:
but Sum is one of the calc-operator nodes. So following the steps, I'm not sure how
calc(1rad + 45deg)
gets reduced down to102.29578deg
.The text was updated successfully, but these errors were encountered: