We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4026ad2 commit aa34d65Copy full SHA for aa34d65
css-paint-api/Overview.bs
@@ -112,12 +112,14 @@ interface PaintWorkletGlobalScope : WorkletGlobalScope {
112
</pre>
113
114
<div class='note'>
115
- Note: This is how the class should look.
116
- <pre class='idl'>
117
- callback interface PaintClass {
118
- readonly attribute sequence<DOMString> inputProperties;
119
- void paint(PaintRenderingContext2D ctx, PaintSize geom, StylePropertyMap inputProperties);
120
- };
+ Note: The shape of the class should be:
+ <pre class='lang-javascript'>
+ class MyPaint {
+ static get inputProperties() { return ['--foo']; }
+ paint(ctx, size, styleMap) {
+ // Paint code goes here.
121
+ }
122
123
124
</div>
125
0 commit comments