Closed Bug 1909522 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 47263 - Writing-mode should not be inherited from CSS

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yi Xu <yiyix@chromium.org> wrote:

Writing-mode should not be inherited from CSS

The 2D context is not supposed to inherit the writing mode of the
parent \<canvas> element.

According to the spec, the algorithm that specifies the canvas text
rendering properties is defined here in the spec:
https://html.spec.whatwg.org/multipage/canvas.html#text-preparation-algorithm
In particular, step 5 of the algorithm.

This test verifies that the vertical writing mode has no effect on
\<canvas> element.

Bug: 40064950

Change-Id: I65f0b11d8331a594dd437510fee008685f679245

Reviewed-on: https://chromium-review.googlesource.com/5732132
WPT-Export-Revision: e2516f92475585b57509dcd197ec0b0489d65ac5

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b0446318048 [wpt PR 47263] - Writing-mode should not be inherited from CSS, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.