Closed Bug 1878371 Opened 1 year ago Closed 29 days ago

Failing WPT css/css-grid/alignment/grid-content-distribution-[026|027].html

Categories

(Core :: Layout: Grid, defect)

defect

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: twisniewski, Assigned: TYLin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No longer depends on: 1878130
Summary: Failing WPT css/css-grid/alignment/grid-content-distribution-[026.html → Failing WPT css/css-grid/alignment/grid-content-distribution-[026|027].html
Severity: -- → S3
Component: Layout → Layout: Grid

It looks like this is about fallback alignment behavior when the grid item (and hence the grid tracks) are larger than the grid.

In http://wpt.live/css/css-grid/alignment/grid-content-distribution-026.html at least, the grid track is wider than the grid, and it uses space-evenly alignment, and the test seems to expect that to end up with start alignment, but we use unsafe-center alignment (overflowing equally off the left and right sides, and off bottom/top sides). So we place it at the wrong position.

Per the CSS Align specification, 'space-between', 'space-around', and
'space-evenly' should use a "safe" fallback alignment when overflow occurs. This
patch implements that behavior, renames the function for clarity, and removes
unused parameters.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Duplicate of this bug: 1878372
Duplicate of this bug: 1878373
Pushed by amarc@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/187010a14e97 Fix overflow alignment for distributed alignment values for grid. r=layout-grid-reviewers,dholbert
Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: