Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Canvas: Add the lang IDL attribute to CanvasTextDrawingStyles #1150

Open
schenney-chromium opened this issue Dec 19, 2024 · 0 comments
Open
Assignees
Labels
topic: API venue: WHATWG Specifications in a WHATWG Workstream

Comments

@schenney-chromium
Copy link

Request for Mozilla Position on an Emerging Web Specification

Other information

The DOM element, like all DOM elements, accepts a lang attribute that is used to define language specific treatment for font selection (when fonts have locale specific glyphs). Browsers respect this attribute. However, when an OffscreenCanvas is created there is no way to set locale information, possibly resulting in a state where an offscreen canvas produces rendered results that differ from the canvas in which it's output is used. This feature adds a lang IDL attribute to CanvasTextDrawingStyles to give developers direct control over the language for the text drawing and metrics.

@zcorpan zcorpan added venue: WHATWG Specifications in a WHATWG Workstream topic: API labels Dec 19, 2024
@zcorpan zcorpan moved this from Unscreened to Needs proposed position in standards-positions review Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: API venue: WHATWG Specifications in a WHATWG Workstream
Projects
Status: Needs proposed position
Development

No branches or pull requests

3 participants