CSS.paintWorklet (Static property)

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

Draft
This page is not complete.

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

paintWorklet is a static, read-only property of the CSS interface that provides access to the PaintWorklet, which programmatically generates an image where a CSS property expects a file. 

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Syntax

var worklet = CSS.paintWorklet;

Value

The PaintWorklet object.

Examples

The following example demonstrates loading a PaintWorklet from its js file and does so by feature detection. 

<script>
  if ('paintWorklet' in CSS) {
    CSS.paintWorklet.addModule('checkerboard.js');
  }
</script>

Specifications

Specification Status Comment
CSS Painting API Level 1
The definition of 'paintWorklet' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
paintWorklet
Experimental
Chrome Full support 65Edge No support NoFirefox ? IE No support NoOpera Full support 52Safari No support NoWebView Android Full support 65Chrome Android Full support 65Firefox Android ? Opera Android Full support 47Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

 

See Also

 

문서 태그 및 공헌자

이 페이지의 공헌자: estelle, jpmedley, mdnwebdocs-bot, Sheppy
최종 변경자: estelle,