Open Bug 1884824 Opened 10 months ago Updated 10 months ago

[wpt-sync] Sync PR 45031 - Promisify font-relative-units-dynamic.html and wait for `document.fonts.ready`

Categories

(Core :: Layout, task, P4)

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

dshin-moz <102040459+dshin-moz@users.noreply.github.com> wrote:

Promisify font-relative-units-dynamic.html and wait for document.fonts.ready

Proposed fix for issue #44840.

This follows other similar tests, such as contain-layout-dynamic-001.html. This stabilizes the test on Blink & Gecko, across multiple hard refreshes.

WebKit, however, requires a double rAF after await document.fonts.ready to stabilize. Without any rAF, WebKit's behaviour is as described in issue #44840. With a single rAF, the test intermittently passes across hard refreshes.

Component: web-platform-tests → Layout
Product: Testing → Core
You need to log in before you can comment on or make changes to this bug.