Closed Bug 1816296 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38457 - Add WPT for delayed stylesheet using <link> with non-match media

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Yash Joshi <yashjoshimail@gmail.com> wrote:

Add WPT for delayed stylesheet using <link> with non-match media

Safari (v163) blocks rendering while waiting for stylesheets, even
after assigning them with low priority. This test makes sure all
browsers align with the official spec and avoid any such bugs in
future.

The test passes if the browser does not block rendering and Js
execution due to delayed stylesheets imported using \<link> tag with non
matching media queries and fails when browser keeps waiting instead of
rendering.

Bug: 1414698
Change-Id: I0b3ce3a8db1e0925e701b3fc3e4d7a7d91ae1ef0
Reviewed-on: https://chromium-review.googlesource.com/4243457
WPT-Export-Revision: 705f542bda209c0f44a8e0bfaa0364f959444357

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e9924b87299 [wpt PR 38457] - Add WPT for delayed stylesheet using <link> with non-match media, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.