Skip to content

[css-paint-api] Add "alpha" as an option. #220

Closed
@bfgeek

Description

@bfgeek

Syntax...

registerPaint('foo', class {
  static get alpha() { return true; }

  paint() { }
});

This is similar to CRC2D alpha context option. If true the backdrop of the rendering context is transparent, if false (default) the backdrop is opaque.

An opaque backdrop may prevent loading occluded images, or simplify drawing operations.

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