Skip to content

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

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

Closed
bfgeek opened this issue Jun 13, 2016 · 2 comments
Closed

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

bfgeek opened this issue Jun 13, 2016 · 2 comments

Comments

@bfgeek
Copy link
Contributor

bfgeek commented Jun 13, 2016

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.

@bfgeek
Copy link
Contributor Author

bfgeek commented Sep 22, 2016

spec should add anti-aliasing and performance opts.

@bfgeek
Copy link
Contributor Author

bfgeek commented Sep 22, 2016

Resolved in Houdini to be consistent with canvas.

@bfgeek bfgeek closed this as completed in 4504469 Jan 4, 2017
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

1 participant