Skip to content

How should non-absolute <length> values be interpreted when used by CanvasTextDrawingStyles's letterSpacing / wordSpacing? #10893

@weinig

Description

@weinig

How should non-absolute values be interpreted when used by CanvasTextDrawingStyles's letterSpacing / wordSpacing (https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-letterspacing).

Currently, there are few different types non-absolute lengths that CSS defines:

This is well defined for CSS properties, but needs some additional language in HTML to make to clarify how to resolve these units.

(would be great to also clarify how/if calc() should be supported here. If calc() is not intended, maybe using the production and a list of supported units would make more sense).

(ctx.filter has the same issue due to drop-shadow() taking a , though it might need a separate resolution. I can file another issue if that turns out to be the case)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions