Closed Bug 1828995 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 39610 - Re-layout writing-mode roots on ICB size change, when needed.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39610 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39610
Details from upstream follow.

Morten Stenshorne <mstensho@chromium.org> wrote:

Re-layout writing-mode roots on ICB size change, when needed.

The inline-size of an orthogonal writing-mode root may depend on the
size of the initial containing block.

This hasn't worked flawlessly for some time (ever?). We have
orthogonal_writing_mode_root_list_ in LocalFrameView, and when the
viewport size changes, we should go through that list and mark
everything for layout. However, this will only happpen when
StyleResolver::WasViewportResized() is true, which is only triggered if
the document has any element with viewport units. That's probably
fixable, so that the flag is always set when needed.

But since orthogonal_writing_mode_root_list_ is less useful anyway with
the legacy engine gone, we're going to remove it. So here's a different
solution, purely on the layout side.

Change-Id: I7754ad87f881ba6569fc27065641a9c809e8ef86
Reviewed-on: https://chromium-review.googlesource.com/4447584
WPT-Export-Revision: 054cc3695bb0fda72baa2bdba2f29ce6f9cb7825

Component: web-platform-tests → Layout
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Try push failed: decision task L7_6tzDnTNeGk44uYGke_w returned error
Try push failed: decision task PdPdL1BmRcSsyTs__CrQ5g returned error
Try push failed: decision task FYkCHCaXSC-IJ08fIqZx-w returned error

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 7 tests

Status Summary

Firefox

FAIL: 7

Chrome

FAIL: 7

Safari

FAIL: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/697149b5a98b [wpt PR 39610] - Re-layout writing-mode roots on ICB size change, when needed., a=testonly https://hg.mozilla.org/integration/autoland/rev/f28033ec2491 [wpt PR 39610] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.