Showing content from https://github.com/w3c/csswg-drafts/issues/2674 below:
[css-grid] Resolving percentage heights of grid items during min-content sizing · Issue #2674 · w3c/csswg-drafts · GitHub
Skip to content Navigation Menu
Saved searches Use saved searches to filter your results more quickly
Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Additional navigation options
[css-grid] Resolving percentage heights of grid items during min-content sizing #2674
Description
When a grid item
- is found inside a container whose track is
mimax(min-content, 1fr)
or 1fr
- has
height:100%
How do you compute the min-content
height of the track?
- Usually in CSS we ignored
height:100%
as height:auto
- However sometimes we resolve to
height:0
during that phase
(for instance see table cells children having overflow:scroll
)
https://wptest.center/#/gawww8 (replaced element)
https://wptest.center/#/v298y2 (in wrapper)
https://wptest.center/#/18osz0 (in wrapper with overflow)
Currently:
- Edge does
auto
auto
auto
- Chrome/Firefox do
0
auto
auto
- My feeling is we should all do
auto
auto
0
Is some behavior defined in the spec? Is it the behavior we want?
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3