-
Notifications
You must be signed in to change notification settings - Fork 785
[css-align-3] the safe flex-start fallback alignment for justify-content:space-between is actually unsafe #11937
Description
Per https://un5n798jx6qx6j0rmf2verhh.julianrbryant.com/css-align-3/#valdef-align-content-space-between , the fallback alignment for justify-content: space-between is safe flex-start.
Here, safe is defined as forcing start alignment when the aligned content causes overflow, per: https://un5n798jx6qx6j0rmf2verhh.julianrbryant.com/css-align-3/#valdef-overflow-position-safe
In cases where the flex container's main axis is reversed (flex-direction: row-reverse or flex-direction: column-reverse) and the flex container itself establishes the scrollport by having overflow:scroll, the safe keyword here actually makes things unsafe -- it forces the overflow off of the end side, where content is unscrollable.
Testcases:
https://un5h208565ak8emkwgjjkgb49yug.julianrbryant.com/attachment.cgi?id=9472153 (column-reverse)
https://un5h208565ak8emkwgjjkgb49yug.julianrbryant.com/attachment.cgi?id=9472158 (row-reverse)
Current Firefox release 136.0.1 renders those^ testcases as orange squares without scrollbars due to following the spec on this point.
I'm planning to revert this behavior and remove safe as part of our fallback alignment here, to match other browsers; and I think we should update the spec as well.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status