Intent to Prototype: Canvas text writing mode support

50 views
Skip to first unread message

Chromestatus

unread,
Dec 9, 2025, 8:46:27 PM (8 hours ago) Dec 9
to blin...@chromium.org, fma...@chromium.org, sche...@chromium.org
Contact emails
sche...@chromium.org, fma...@chromium.org

Explainer
https://github.com/schenney-chromium/explainers/blob/canvas-writing-mode/canvas-writing-mode/README.md

Specification
No information provided

Summary
Writing mode support for HTML canvas text will enable correct text shaping for vertical text, as already supported by CSS. Canvas text styles gain a "writingMode" attribute along with a "textOrientation" attribute that have the same effect on a text run as the related CSS properties. The various alignment attributes are augmented to support vertically oriented text. The CSS properties from the canvas element style are ignored.

Blink component
Blink>Canvas

Web Feature ID
canvas-2d

Motivation
Canvas text styles do not provide any direct control over the writing mode and character orientation, and browsers are inconsistent with how they treat the CSS properties on the canvas element. The workaround is to render and position each character separately, which may require a JS implementation of text shaping.

Initial public proposal
https://github.com/whatwg/html/issues/11449

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/467169720

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5101480770142208?gate=6314380205621248

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages