Closed Bug 1764989 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 33660 - [renderblocking] Add a WPT about a specific render-blocking use case

Categories

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

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Xiaocheng Hu <xiaochengh@chromium.org> wrote:

[renderblocking] Add a WPT about a specific render-blocking use case

There is a specific use case of render-blocking web font:

  • Font provider provides an external stylesheet with @font-face
    definitions
  • The stylesheet has a link header that preloads font file with
    blocking=render

In this way, web developers can make a 3rd-party web font render-blocking
without the need to know (and maintain) the exact url of the font file.

This patch adds a WPT for this use case.

Bug: 1271296
Change-Id: I37b9f9fe17bdd33a17f679cba577c0a377a2c95b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3588735
Commit-Queue: Xiaocheng Hu \<xiaochengh@chromium.org>
Auto-Submit: Xiaocheng Hu \<xiaochengh@chromium.org>
Reviewed-by: Joey Arhar \<jarhar@chromium.org>
Commit-Queue: Joey Arhar \<jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#993041}

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 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
FAIL: 2

Chrome

OK : 1
PASS: 1
FAIL: 1

Safari

OK : 1
PASS: 2

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/html/dom/render-blocking/stylesheet-header-inserted-preload-link.tentative.html
Render-blocking web font specified by the stylesheet is applied: FAIL

New Tests That Don't Pass

/html/dom/render-blocking/stylesheet-header-inserted-preload-link.tentative.html
Rendering is blocked before render-blocking resources are loaded: FAIL (Chrome: FAIL, Safari: PASS)
Render-blocking web font specified by the stylesheet is applied: FAIL (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/92443937cee5 [wpt PR 33660] - [renderblocking] Add a WPT about a specific render-blocking use case, a=testonly https://hg.mozilla.org/integration/autoland/rev/a97ee6848a83 [wpt PR 33660] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.