WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
262729
CSS Subgrid unwanted white gap.
https://bugs.webkit.org/show_bug.cgi?id=262729
Summary
CSS Subgrid unwanted white gap.
Nilesh Prajapati
Reported
2023-10-05 13:37:02 PDT
Created
attachment 468077
[details]
Subgrid - issue for Safari 17 Safari 17:CSS Subgrid issue. When implementing the following card layout using css sub grid the result is inconsistent with other browser's implementation. Issue 1: a white gap appears between the image and the title. Issue 2: The height of the footer is taller. Browsers test Safari: ❌ Chrome: ✅ Chrome C: ✅ Firefox: ✅ Code Example:
https://codepen.io/nileshprajapati/pen/PoXxbdv
Attachments
Subgrid - issue for Safari 17
(1.81 MB, image/png)
2023-10-05 13:37 PDT
,
Nilesh Prajapati
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-10-11 08:03:03 PDT
<
rdar://problem/116810416
>
Karl Dubost
Comment 2
2023-10-15 19:41:41 PDT
Not only the white space, but also the way the alignment of the layout is broken in each card compared to the others.
Karl Dubost
Comment 3
2023-10-15 19:51:04 PDT
As a quick fix, removing the overflow: hidden, fixes it. .box { /* overflow: hidden; */ grid-row: span 4; padding: 0; margin: 0 !important; display: grid; gap: 0; grid-template-rows: subgrid; }
Nilesh Prajapati
Comment 4
2024-01-10 07:06:22 PST
Hi Karl Thank you for reviewing my ticket. I confirm that removing overflow: hidden fixes the issue. Will there be an improvement to the subgrid that will fix the following issue in the future release of Safari? Thanks, Nilesh
Ahmad Saleem
Comment 5
2024-07-25 16:24:11 PDT
It seems that it was fixed in Safari 17.4 and also confirmed by test case - which was updated by reporter.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug