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
[css-values-4] How to serialize calc(100% - 100% + 1em) at computed-value time #3806
Comments
Firefox 68 and Epiphany Technological Preview 3.31.90-8061c1929 (WebKitGTK 2.24.0) pass this test . Chromium 73.0.3683.75 and Chromium 75.0.3753.0 return "16px 50%" instead of the expected "calc(0% + 16px) 50%" . |
A note in § 10.9 Serialization states:
https://drafts.csswg.org/css-values-4/#calc-serialize |
You are correct, that example is wrong and should be showing a px result. The |
Don't you need to also change the sorting order of terms too? Percentage precedes dimension. |
Percentage first. PR uploaded. |
§10.7. Computed Value states:
https://drafts.csswg.org/css-values-4/#calc-computed-value
but shouldn't that be instead:
"calc(100% - 100% + 1em) resolves to calc(0% + 16px), not to 16px", assuming 1em = 16px ?
Either this is the case or last parg of Example 35 (following below) misleads and creates confusion.
The text was updated successfully, but these errors were encountered: