github web-platform-tests/wpt merge_pr_46695

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
7 months ago

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/c/chromium/src/+/5567732
Commit-Queue: Traian Captan tcaptan@chromium.org
Reviewed-by: Philip Rogers pdr@chromium.org
Cr-Commit-Position: refs/heads/main@{#1313575}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.