We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://drafts.csswg.org/css-sizing-3/#replaced-percentage-min-contribution
If the box is replaced, a cyclic percentage in the value of any max size property or preferred size property (width/max-width/height/max-height), is resolved against zero when calculating the min-content contribution in the corresponding axis.
For starters, this needs to then floor the max-content contribution by that amount, otherwise the min-content contribution could be larger:
<canvas width="50" height="50" style="width: calc(100px + 0%)"></canvas>
100px + 0px = 100px
50px
But browsers don't have this problem, because they do not resolve percentages against zero. Instead, they treat the min-content contribution as zero:
<!DOCTYPE html> <div style="width: min-content; border: solid"> <canvas width="50" height="50" style="width: calc(100px + 0%)"></canvas> </div>
This is in fact analogous to #10969
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://drafts.csswg.org/css-sizing-3/#replaced-percentage-min-contribution
For starters, this needs to then floor the max-content contribution by that amount, otherwise the min-content contribution could be larger:
100px + 0px = 100px
50px
But browsers don't have this problem, because they do not resolve percentages against zero. Instead, they treat the min-content contribution as zero:
This is in fact analogous to #10969
The text was updated successfully, but these errors were encountered: