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] lang IDL attribute for CanvasTextDrawingStyles #439

Open
schenney-chromium opened this issue Dec 19, 2024 · 1 comment
Open

Comments

@schenney-chromium
Copy link

WebKittens

No response

Title of the proposal

Add a lang IDL Attribute to CanvasTextDrawingStyles

URL to the spec

whatwg/html#10873

URL to the spec's repository

https://github.com/whatwg/html

Issue Tracker URL

No response

Explainer URL

whatwg/html#10862

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

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.

@annevk
Copy link
Contributor

annevk commented Dec 19, 2024

I have not discussed this with colleagues, but this seems like an oversight in the API. I recommend we mark this as "position: support", but not before January 6 due to the holiday period.

cc @shallawa @vitorroriz

@squelart squelart changed the title [HTML Canvas] lang IDL attribute for CavasTextDrawingStyles [HTML Canvas] lang IDL attribute for CanvasTextDrawingStyles Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants