WebIDLpedia

PaintWorkletGlobalScope interface

Definition

CSS Painting API Level 1 defines PaintWorkletGlobalScope



[Global=(Worklet,PaintWorklet),Exposed=PaintWorklet]
interface PaintWorkletGlobalScope : WorkletGlobalScope {
    undefined registerPaint(DOMString name, VoidFunction paintCtor);
    readonly attribute unrestricted double devicePixelRatio;
};