Bug 236634 - [css-flexbox] Safari does not add padding-end on overflow for flexbox (but now does for grid)
Summary: [css-flexbox] Safari does not add padding-end on overflow for flexbox (but no...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-14 23:51 PST by mic.gallego
Modified: 2023-02-03 02:24 PST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mic.gallego 2022-02-14 23:51:54 PST
Hi,

It seems that Safari TP properly aligned on this proposal (https://github.com/w3c/csswg-drafts/issues/129) to align with what other browsers are doing. However, while Safari is doing it correctly for grid,  it still does not work for Flexbox.

It would be nice if this issue could be fixed before iOS 15.4, as this makes now the experience completely inconsistent, with grid following specs but flexbox not.

The issue can be reproduced here: https://codepen.io/bakura10/pen/JjOrMEr

Both Firefox and Chrome behaves as the spec.
Comment 1 Radar WebKit Bug Importer 2022-02-21 23:52:20 PST
<rdar://problem/89278970>
Comment 2 Ludo 2022-05-02 08:28:00 PDT
Running into this issue myself with my team. We are using CSS sliders on our theme (Shopify website) done with flexbox and scroll snap properties but we have issues too with the last slide sitting on the edge of the viewport instead of having the margin applied (which works in Chrome and Firefox).

So we're using a workaround where we use a pseudo element :after on the <ul> element and applying some margin to that and it seem to work.
Comment 3 mic.gallego 2022-09-26 00:37:47 PDT
Any way to prioritize this? Safari still behaves different from other browsers in  regards of flexbox within overflow containers. Safari is still inconsistent in its inconstencies, and makes applying hack very complicated.
Comment 4 mic.gallego 2022-09-26 00:41:24 PDT
Sorry about this, just tried on Safari 16 and actually it seems to have been fixed. Can someone at Apple confirms and eventually close this ticket?
Comment 5 Ahmad Saleem 2023-02-03 02:24:51 PST
All browsers (Safari 16.3, STP162, WebKit ToT, Chrome Canary 112 and Firefox Nightly 111) are rendering fine.

Marking this as "RESOLVED CONFIGURATION CHANGED". Thanks!