Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for PaintWorkletGlobalScope.
Developer library 6
`paint()` CSS function
li>item 7</li> <li>item 8</li> <li>item 9</li> <li>item 10</li> <li>item N</li> </ul> ``` In JavaScript, we register the [paint worklet](/docs/Web/API/PaintWorkletGlobalScope): ```js live-sample___example-boxbg CSS.paintWorklet.addModule( "https://mdn.github.io/houdini-examples/cssPaint/intro/worklets/boxbg.js", ); ``` In the CSS, we define the `background-image` as a `paint()` type with the worklet name
CSS Houdini
of Houdini is the Worklet. A worklet is a module, written in JavaScript, that extends CSS using one of the Houdini APIs. You can see an example worklet on the PaintWorkletGlobalScope.registerPaint() page. Once a worklet has been registered you can use it in CSS just like any other value. This means that even if you are not a JavaScript developer, you can access Houdini APIs by using worklets other people have create
` ` HTML external resource link element
SON file </td> </tr> <tr> <td>paintworklet</td> <td>modulepreload</td> <td><a href="/en-US/docs/Web/API/PaintWorkletGlobalScope">PaintWorklet</a> modules</td> </tr> <tr> <td>script</td> <td>preload or modulepreload</td> <td> <code><script></code> elements, Worker <code>importScripts</code>, and <code
PaintWorkletGlobalScope
CSS Painting API The **`PaintWorkletGlobalScope`** interface of the [CSS Painting API](/docs/Web/API/CSS_Painting_API) represents the global object available inside a paint Worklet. ## Privacy concerns To avoid leaking visited links, this feature is currently disabled in Chrome-based browsers for a elements with an `href` attribute, and for children of such elements. For details, see the following: - The CSS Pain
PaintWorkletGlobalScope: devicePixelRatio property
CSS Painting API The **`devicePixelRatio`** read-only property of the PaintWorkletGlobalScope interface returns the current device's ratio of physical pixels to logical pixels. ## Value A double-precision integer. ## Specifications ## Browser compatibility ## See also - [CSS.paintWorklet](/docs/Web/API/CSS/paintWorklet_static) - [Worklet](/docs/Web/API/Worklet) - [CSS Painting API](/docs/Web/API/CSS_Painti
PaintWorkletGlobalScope: registerPaint() method
CSS Painting API The **`registerPaint()`** method of the PaintWorkletGlobalScope interface registers a class to programmatically generate an image where a CSS property expects a file. ## Syntax ```js-nolint registerPaint(name, classRef) ``` ### Parameters - `name` - : The name of the worklet class to register. - `classRef` - : A reference to the class that implements the worklet. ### Return value None (und