Definition
Realm execution contexts tied to the PaintWorklet
Global name use PaintWorkletGlobalScope
as a basis for their global object.
This means their global object exposes the following members:
undefined registerPaint(DOMString name, VoidFunction paintCtor);
readonly attribute unrestricted double devicePixelRatio;
The following interfaces are exposed exclusively in the corresponding realms:
- AbortController
- AbortSignal
- ByteLengthQueuingStrategy
- CompressionStream
- CountQueuingStrategy
- CustomEvent
- DOMException
- DecompressionStream
- ErrorEvent
- Event
- EventTarget
- Global
- Instance
- Memory
- Module
- Observable
- PaintRenderingContext2D
- PaintSize
- PaintWorkletGlobalScope
- PromiseRejectionEvent
- ReadableByteStreamController
- ReadableStream
- ReadableStreamBYOBReader
- ReadableStreamBYOBRequest
- ReadableStreamDefaultController
- ReadableStreamDefaultReader
- Subscriber
- Table
- TextDecoder
- TextDecoderStream
- TextEncoder
- TextEncoderStream
- TransformStream
- TransformStreamDefaultController
- URL
- URLSearchParams
- WebTransportWriter
- WritableStream
- WritableStreamDefaultController
- WritableStreamDefaultWriter
The following interfaces are also exposed in the corresponding realms:
- AbortController
- AbortSignal
- ByteLengthQueuingStrategy
- CSSColor
- CSSColorValue
- CSSHSL
- CSSHWB
- CSSImageValue
- CSSKeywordValue
- CSSLCH
- CSSLab
- CSSMathClamp
- CSSMathInvert
- CSSMathMax
- CSSMathMin
- CSSMathNegate
- CSSMathProduct
- CSSMathSum
- CSSMathValue
- CSSMatrixComponent
- CSSNumericArray
- CSSNumericValue
- CSSOKLCH
- CSSOKLab
- CSSPerspective
- CSSRGB
- CSSRotate
- CSSScale
- CSSSkew
- CSSSkewX
- CSSSkewY
- CSSStyleValue
- CSSTransformComponent
- CSSTransformValue
- CSSTranslate
- CSSUnitValue
- CSSUnparsedValue
- CSSVariableReferenceValue
- CompressionStream
- CountQueuingStrategy
- CustomEvent
- DOMException
- DecompressionStream
- ErrorEvent
- Event
- EventTarget
- Global
- Instance
- Memory
- Module
- Observable
- PromiseRejectionEvent
- ReadableByteStreamController
- ReadableStream
- ReadableStreamBYOBReader
- ReadableStreamBYOBRequest
- ReadableStreamDefaultController
- ReadableStreamDefaultReader
- StylePropertyMapReadOnly
- Subscriber
- Table
- TextDecoder
- TextDecoderStream
- TextEncoder
- TextEncoderStream
- TransformStream
- TransformStreamDefaultController
- URL
- URLSearchParams
- WebTransportWriter
- WorkletGlobalScope
- WritableStream
- WritableStreamDefaultController
- WritableStreamDefaultWriter