Fix cases where stretch-block-size-003.html inadvertently has a 0-size parent
Categories
(Core :: Layout, task)
Tracking
()
| 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.
| Assignee | ||
Comment 1•1 year ago
|
||
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.
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•