🔰coordinates
browser ⟩ concepts ⟩ coordinate system
There are 3 different coordinate systems:
document coordinates
viewport coordinates - also called "window coordinates".
container coordinates - relatively positioned container with top/left = 0.
👉 window window scrolling
window.scrollTo() takes the x and y coordinates in document coordinates.
👉 CSS position
Last updated
Was this helpful?