Closed Bug 1940367 Opened 1 year ago Closed 1 year ago

Fix cases where stretch-block-size-003.html inadvertently has a 0-size parent

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

IanK alerted me to some pieces of this test (added in bug 1937624) that are failing in Chrome, where the test's expectations are probably incorrect:
https://wpt.live/css/css-sizing/stretch/stretch-block-size-003.html

I think the same is true for this test:
https://wpt.live/css/css-sizing/stretch/stretch-inline-size-003.html

Each piece of those tests has an abspos element whose in-flow parent is distinct from its abspos containing block. The trouble arises from cases where the in-flow parent is 0x0 due to writing-mode differences between it and its parent; this creates a situation where stretch should trivially resolve to 0, which isn't too interesting. (The test expects it to resolve to something nonzero right now, but that's because it's accidentally depending on a Firefox bug -- bug 1940321, I think -- which is how we manage to pass the test right now, with its incorrect expectations.)

Let's rescue these two tests so that none of these elements are inadvertently 0x0, so that stretch can reliably actually stretch to a nonzero size on the abspos child.

As noted in the bug report, I recently added these tests, but they turned out
to fail in Chrome because they were inadvertently depending on a Firefox bug
(specifically https://bugzilla.mozilla.org/show_bug.cgi?id=1940321 ).

This patch removes that inadvertent dependency, which makes them pass in Chrome.

This change does introduce some new test failures in Firefox, which appear to
be cases where we're over-counting the border/padding on the abspos element;
I'll investigate and address those failures in a followup, but for now I'm
aiming to make the test's expectations correct.

Blocks: 1940370
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa002a402ee1 Fix some edge cases in WPTs stretch-block-size-003.html and stretch-inline-size-003.html. r=layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49980 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: