Skip to content

[css-paint-api] Decide what to do with 'currentColor' as a fillStyle/strokeStyle on PaintRenderingContext2D #133

Closed
@bfgeek

Description

@bfgeek

There are three different options here:

  1. Throw exception on 'currentColor' being set as a style.
  2. Try and resolve 'currentColor' based on the current element as the style resolution host.
  3. Treat 'currentColor' as fully opaque black (this happens when a CanvasRenderingContext2D is detached from the DOM).

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