Closed Bug 1732317 Opened 4 years ago Closed 7 months ago

New wpt failures in /css/css-grid/grid-with-orthogonal-child-within-flexbox.html

Categories

(Core :: Layout: Grid, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1949064

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

(Whiteboard: [wpt])

Attachments

(1 file)

Syncing wpt PR 30703 found new untriaged test failures in CI

Tests Affected

New Tests That Don't Pass

/css/css-grid/grid-with-orthogonal-child-within-flexbox.html: FAIL (Chrome: PASS, Safari: FAIL)

CI Results

Gecko CI (Treeherder)
GitHub PR Head

Notes

These updates will be on mozilla-central once bug 1730616 lands.

Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.

This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/

If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.

Reduced testcase:

data:text/html,<div style="display:inline-grid;height:1px;border:1px solid black"><div style="writing-mode:vertical-rl">abc def ghi

In Firefox, the grid (shown by the black border) is only as wide as a single line of text, and the text runs off the block-end edge (the left) and runs off the screen.

In Chrome, the grid is as wide as all three lines of text, and the text doesn't run off the screen, because the grid computes the right content-width.

Severity: -- → S3

We have a similar bug for flexbox, though I think this particular WPT test is broken strictly as a result of the aforementioned grid bug.

But for completeness, here's a reduced testcase for the analogous flexbox bug:

data:text/html,<div style="display:inline-flex;height:1px;border:1px solid black"><div style="writing-mode:vertical-rl">abc def ghi

In Firefox, the flex container (shown by the black border) has a 0px-wide content area (though fortunately nothing runs off the page).
In Chrome, the flex container is wide enough to fit all three lines of text.

The orthogonal flex item returns zero intrinsic inline size (in flex container's writing mode) because we didn't know its block size, and it goes into this logic in nsLayoutUtils::IntrinsicForAxis(). This is essentially bug 1310551.

Bug 1949064 fixed grid-with-orthogonal-child-within-flexbox.html.

Status: NEW → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1949064
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: