Closed Bug 1901832 Opened 16 days ago Closed 13 days ago

[wpt-sync] Sync PR 46695 - Fix print @page only external resource loading

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Traian Captan <tcaptan@chromium.org> wrote:

Fix print @page only external resource loading

Even though UpdateStyleAndLayout is called after setting media type
to print, not all print only resources loadings are initiated.
Calling also StyleForPage() triggers the remaining ones, like for
@page only background images, via state.LoadPendingResources().

There may be additional edge cases that may need to be revisited
later, like loading that is triggered only with certain page sizes,
due to container queries, for instance.

Bug: 341947679
Change-Id: Ic32b934f8fe7aa894495cbb48b076988ec5e4a04

Reviewed-on: https://chromium-review.googlesource.com/5567732
WPT-Export-Revision: 861cacf1b43a1480c46c66df250056fa4b80b68d

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

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

Total 1 tests

Status Summary

Firefox

FAIL: 1

Chrome

FAIL: 1

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/a2f8e1f01349
[wpt PR 46695] - Fix print @page only external resource loading, a=testonly
https://hg.mozilla.org/integration/autoland/rev/70646ac19206
[wpt PR 46695] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.