-
Notifications
You must be signed in to change notification settings - Fork 711
[css-images-4] Computed value of stripes() #8140
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
But percentages in Sebastian |
Percentages in |
You're right. I mixed up the resolved value from Because @fantasai already changed the spec. to keep percentages unchanged, I close this issue now. Feel free to re-open it if I missed anything. Sebastian |
Having said that, #8163 (comment) outlines a reason why keeping percentages as-is restricts us regarding transitions. Sebastian |
Actually, I think this was better initially, where flexes were computed to lengths eagerly. That solves the transition issue immediately and clearly, without needing further interventions as I outlined in my comment. And as stripes are essentially an image type, I find it very unlikely that they'll ever be used in an inherited property. |
I added #8622 to the agenda, which will also cover the things discussed here. The proposal is to adopt Tab's suggestion from above. I assume, if there's a real need to add Sebastian |
The current spec says that the computed value of stripes() has all length-percentage values “absolutized and computed to the extent possible”. For border widths, that means it'll resolve to an absolute length.
However, I suspect we want to keep percentages uncomputed for inheritance, if we ever do use this in an inherited property, so I propose to use the same formulation as
width
etc. rather thanline-height
.The text was updated successfully, but these errors were encountered: