-
Notifications
You must be signed in to change notification settings - Fork 642
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-sizing-4] Do things with aspect ratio resolve percentages like replaced elements or non-replaced? #4638
Comments
The other place that talks about replaced elements is this section in Grid: https://drafts.csswg.org/css-grid-1/#grid-item-sizing |
Another place that talks about replaced vs non-replaced is https://drafts.csswg.org/css-sizing-3/#percentage-sizing but it does not talk about aspect ratios except by deferring to the cyclic percentage definition linked earlier. |
Checked in a few changes: |
@bfgeek Are there other spec sections that you were concerned about (other than css-position, which needs general triage)? |
(We did a grep over the repository, and every remaining reference to replaced elements appears to be intentionally talking about replaced elements, not "things with aspect ratios". But my grep might have been simplistic and missed stuff, dunno.) |
So there is a super edge case within tables for WebKit/Blink/EdgeHTML which relies on this distinction, (and we believe it is required for webcompat). Basically in the above example replaced elements resolve their values, differently to non-replaced. I think it should be fine to keep this as a replaced vs. non-replaced distiction, rather than has-ar vs. no-ar. |
Closing per @bfgeek |
There are subtle differences between how replaced elements resolve %-block-sizes, and how non-replaced elements resolve.
Should clarify if they resolve based on their type (replaced, vs. non-replaced), or resolve like replaced.
The text was updated successfully, but these errors were encountered: