- From: Zheeeng via GitHub <sysbot+gh@w3.org>
- Date: Sat, 02 Jun 2018 08:56:48 +0000
- To: public-houdini-archive@w3.org
zheeeng has just created a new issue for https://github.com/w3c/css-houdini-drafts:
== [css-paint-api] Allow inputArguments define optional arguments ==
The custom paint requires a color argument.
```
class MyPaint {
static get inputArguments() { return ['<color>']; }
paint(ctx, size, styleMap) {
// Paint code goes here.
}
}
registerPaint('my-paint', MyPaint)
```
At present, the correct usage is `background: paint(my-paint, red)`.
Whish there is a way to make this color argument be optional: `background: paint(my-paint)`
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/763 using your GitHub account
Received on Saturday, 2 June 2018 08:58:25 UTC