Closed Bug 1765918 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33747 - [renderblocking] Dynamically inserted render-blocking stylesheets should not block scripts

Categories

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

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Xiaocheng Hu <xiaochengh@chromium.org> wrote:

[renderblocking] Dynamically inserted render-blocking stylesheets should not block scripts

This patch fixes a bug that adding blocking=render to script-inserted
stylesheets makes them script-blocking, which violates the spec as only
parser-inserted stylesheets can be script-blocking [1].

This patch is also a preparation patch to allow unblocking rendering on
dynamic stylesheets by removing blocking=render [2]

[1] https://html.spec.whatwg.org/#contributes-a-script-blocking-style-sheet
[2] crrev.com/c/3601726

Bug: 1271296
Change-Id: I6eee34357ab034c802b3b022719427a1b3964c19

Reviewed-on: https://chromium-review.googlesource.com/3601502
WPT-Export-Revision: 38502433dc93dd0f6c264ca1e0c99bbe8dd845ab

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

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
PASS: 2

Chrome

OK : 2
FAIL: 2

Safari

OK : 2
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8e2c99ec02e0
[wpt PR 33747] - [renderblocking] Dynamically inserted render-blocking stylesheets should not block scripts, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.