We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec0cd6 commit 70d944cCopy full SHA for 70d944c
css-paint-api/Overview.bs
@@ -131,10 +131,14 @@ partial interface CSS {
131
132
The {{PaintWorkletGlobalScope}} is the global execution context of the {{paintWorklet}}.
133
134
+The {{PaintWorkletGlobalScope}} has a {{PaintWorkletGlobalScope/devicePixelRatio}}
135
+property which is identical to the Window.{{Window/devicePixelRatio}} property.
136
+
137
<pre class='idl'>
138
[Global=(Worklet,PaintWorklet),Exposed=PaintWorklet]
139
interface PaintWorkletGlobalScope : WorkletGlobalScope {
140
void registerPaint(DOMString name, VoidFunction paintCtor);
141
+ readonly attribute unrestricted double devicePixelRatio;
142
};
143
</pre>
144
0 commit comments