CSSOM view
The CSSOM view module lets you manipulate the visual view of a document, including getting the position of element layout boxes, obtaining the width or height of the viewport through script, and also scrolling an element.
Reference
Events
Glossary
Interfaces
Inteface extensions
This module adds properties and methods to interfaces defined in other specifications.
Window
devicePixelRatio
innerHeight
innerWidth
matchMedia()
moveBy()
moveTo()
outerHeight
outerWidth
pageXOffset
(seescrollX
)pageYOffset
(seescrollY
)resizeBy()
resizeTo()
screen
screenLeft
screenTop
screenX
screenY
visualViewport
scroll()
scrollBy()
scrollTo()
scrollX
scrollY
Document
Element
HTMLElement
HTMLImageElement
Range
MouseEvent
This module define geometric utility methods which will apply to the Text
, Element
, CSSPseudoElement
, and Document
interfaces. These GeometryUtils
features are not yet implemented in any browsers.
Guides
- Coordinate systems
-
The coordinate systems used to specify a position in a display context such as a window on a monitor, a viewport on a mobile device, or a position on a sheet of paper when printing.
- Viewport concepts
-
The concept of the viewport — what it is, its impact in terms of CSS, SVG, and mobile devices — and the difference between the visual viewport and the layout viewport.
Related concepts
Specifications
Specification |
---|
CSSOM View Module |
See also
- CSS Object Model (CSSOM) API
- CSS overflow module
- CSS overscroll behavior module
- CSS scroll snap module