The offsetLeft
read-only property of the VisualViewport
interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels.
The offsetLeft
read-only property of the VisualViewport
interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels.
A double.
Specification |
---|
CSSOM View Module # dom-visualviewport-offsetleft |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
offsetLeft |
61 | 79 | 91 | No | 48 | 13 | 61 | 61 | 68 | 45 | 13 | 8.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetLeft