NEW 202051
[css-grid] Safari does not calculate intrinsic height for grid cell
https://bugs.webkit.org/show_bug.cgi?id=202051
Summary [css-grid] Safari does not calculate intrinsic height for grid cell
Steven Luscher
Reported 2019-09-20 11:55:51 PDT
Created attachment 379252 [details] Rendering in Safari Here's a grid. <div id="wrap"> <div id="grid"> <div id="cell1">A</div> <div id="cell2">B</div> </div> </div> We know it's height by virtue of it's relationship to its wrapper – it's as tall as its container is wide. #wrap { padding-top: 100%; position: relative; } #grid { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; grid-gap: 2px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); } When I ask the two cells to span two columns and one row each: #cell1 { grid-column-end: 1; grid-column-start: 3; grid-row-end: 1; grid-row-start: 2; } #cell2 { grid-column-end: 1; grid-column-start: 3; grid-row-end: 2; grid-row-start: 3; } ...they acquire the correct width but not the correct height. It appears that Safari does not calculate the intrinsic height of each row based on the height of the grid. Repro: https://jsbin.com/rovolevubu/edit?html,css,output
Attachments
Rendering in Safari (8.41 KB, image/png)
2019-09-20 11:55 PDT, Steven Luscher
no flags
Rendering in Chrome/Firefox (8.58 KB, image/png)
2019-09-20 11:56 PDT, Steven Luscher
no flags
Steven Luscher
Comment 1 2019-09-20 11:56:19 PDT
Created attachment 379253 [details] Rendering in Chrome/Firefox
Sam Sneddon [:gsnedders]
Comment 2 2020-02-26 15:41:12 PST
Ahmad Saleem
Comment 3 2022-10-25 01:05:33 PDT
I don't get rendering "red" rendering as shown in reference on above. Plus it seems Safari Technology Preview 156 behave similar to other browsers (Chrome Canary 109 and Firefox Nightly 108). Appreciate if someone else can have another look so we can mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!
Note You need to log in before you can comment on or make changes to this bug.