This feature is not Baseline because it does not work in some of the most widely-used browsers.
The PaintSize interface of the CSS Painting API represents the size of the output bitmap that the author should draw.
PaintSize.height Read only
Returns the height of the output bitmap that the author should draw.
PaintSize.width Read only
Returns the width of the output bitmap that the author should draw.
| Specification |
|---|
| CSS Painting API Level 1> # paintsize> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
PaintSize |
65 | 79 | No | 52 | No | 65 | No | 47 | No | 9.0 | 65 | No |
height |
65 | 79 | No | 52 | No | 65 | No | 47 | No | 9.0 | 65 | No |
width |
65 | 79 | No | 52 | No | 65 | No | 47 | No | 9.0 | 65 | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PaintSize