Closed Bug 1952991 Opened 9 days ago Closed 2 days ago

[wpt-sync] Sync PR 51240 - Switch all Canvas lang tests to use a WPT font

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Stephen Chenney <schenney@chromium.org> wrote:

Switch all Canvas lang tests to use a WPT font

WPT test policy says we should rely on fonts from within WPT in order to
be as platform agnostic as possible. The previous version of these tests
did not work in some browsers on some platforms due to issues with local
font loading (and there is some chance that coming changes to reduce
font fingerprinting may make things worse).

So switch to loading a WPT font for all of these tests, and use
ligatures from that font to test the functionality.

Also fix the behavior for a disconnected canvas with no lang attribute.
The spec says that we should use the unknown language in that case.

Bug: 385006131
Change-Id: I80ddfa1fce95e689b11f8bdf675b087fb44e8dc4

Reviewed-on: https://chromium-review.googlesource.com/6331511
WPT-Export-Revision: 3ebfa68c0c920aa2597b136d60de9eadea29d848

PR 51240 applied with additional changes from upstream: 20365259dffd3f467b695c4ed0d03006fe50ce23
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 13 tests

Status Summary

Firefox

PASS: 3[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt, GitHub] 4[Gecko-android-em-7.0-x86_64-qr-debug-geckoview]
FAIL: 7[Gecko-android-em-7.0-x86_64-qr-debug-geckoview] 8[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview] 10[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt, GitHub]

Chrome

PASS: 11
FAIL: 2

Safari

PASS: 3
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9c2547c2c3e8 [wpt PR 51240] - Switch all Canvas lang tests to use a WPT font, a=testonly https://hg.mozilla.org/integration/autoland/rev/eab3f3612b40 [wpt PR 51240] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.