-
Notifications
You must be signed in to change notification settings - Fork 23k
New CSSOM view API landing page, move CSS guides under #40547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| --- | ||
| title: CSSOM view API | ||
| slug: Web/API/CSSOM_view_API | ||
| page-type: web-api-overview | ||
| spec-urls: https://drafts.csswg.org/cssom-view/ | ||
| --- | ||
|
|
||
| {{DefaultAPISidebar("CSSOM view API")}} | ||
|
|
||
| The **CSSOM view API** 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. | ||
|
|
||
| ## Guides | ||
|
|
||
| - [Coordinate systems](/en-US/docs/Web/API/CSSOM_view_API/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](/en-US/docs/Web/API/CSSOM_view_API/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. | ||
|
|
||
| ## Interfaces | ||
|
|
||
| - {{domxref("MediaQueryList")}} | ||
| - {{domxref("MediaQueryListEvent")}} | ||
| - {{domxref("Screen")}} | ||
| - {{domxref("CaretPosition")}} | ||
| - {{domxref("VisualViewport")}} | ||
|
|
||
| ## Extensions to other interfaces | ||
|
|
||
| This module adds properties, methods, and events to interfaces defined in other specifications. | ||
|
|
||
| ### Extensions to Window | ||
|
|
||
| - {{domxref("Window.devicePixelRatio", "devicePixelRatio")}} | ||
| - {{domxref("Window.innerHeight", "innerHeight")}} | ||
| - {{domxref("Window.innerWidth", "innerWidth")}} | ||
| - {{domxref("Window.matchMedia", "matchMedia()")}} | ||
| - {{domxref("Window.moveBy", "moveBy()")}} | ||
| - {{domxref("Window.moveTo", "moveTo()")}} | ||
| - {{domxref("Window.outerHeight", "outerHeight")}} | ||
| - {{domxref("Window.outerWidth", "outerWidth")}} | ||
| - `pageXOffset` (see {{domxref("Window.scrollX", "scrollX")}}) | ||
| - `pageYOffset` (see {{domxref("Window.scrollY", "scrollY")}}) | ||
| - {{domxref("Window.resizeBy", "resizeBy()")}} | ||
| - {{domxref("Window.resizeTo", "resizeTo()")}} | ||
| - {{domxref("Window.screen", "screen")}} | ||
| - {{domxref("Window.screenLeft", "screenLeft")}} | ||
| - {{domxref("Window.screenTop", "screenTop")}} | ||
| - {{domxref("Window.screenX", "screenX")}} | ||
| - {{domxref("Window.screenY", "screenY")}} | ||
| - {{domxref("Window.visualViewport", "visualViewport")}} | ||
| - {{domxref("Window.scroll", "scroll()")}} | ||
| - {{domxref("Window.scrollBy", "scrollBy()")}} | ||
| - {{domxref("Window.scrollTo", "scrollTo()")}} | ||
| - {{domxref("Window.scrollX", "scrollX")}} | ||
| - {{domxref("Window.scrollY", "scrollY")}} | ||
| - {{domxref("Window/resize_event", "resize")}} event | ||
|
|
||
| ### Extensions to Document | ||
|
|
||
| - {{domxref("Document.elementFromPoint", "elementFromPoint()")}} | ||
| - {{domxref("Document.caretPositionFromPoint", "caretPositionFromPoint()")}} | ||
| - {{domxref("Document.scrollingElement", "scrollingElement")}} | ||
| - {{domxref("Document/scroll_event", "scroll")}} event | ||
| - {{domxref("Document/scrollend_event", "scrollend")}} event | ||
|
|
||
| ### Extensions to Element | ||
|
|
||
| - {{domxref("Element.checkVisibility", "checkVisibility()")}} | ||
| - {{domxref("Element.clientHeight", "clientHeight")}} | ||
| - {{domxref("Element.clientLeft", "clientLeft")}} | ||
| - {{domxref("Element.clientTop", "clientTop")}} | ||
| - {{domxref("Element.clientWidth", "clientWidth")}} | ||
| - {{domxref("Element.currentCSSZoom", "currentCSSZoom")}} | ||
| - {{domxref("Element.getBoundingClientRect", "getBoundingClientRect()")}} | ||
| - {{domxref("Element.getClientRects", "getClientRects()")}} | ||
| - {{domxref("Element.scroll", "scroll()")}} | ||
| - {{domxref("Element.scrollBy", "scrollBy()")}} | ||
| - {{domxref("Element.scrollHeight", "scrollHeight")}} | ||
| - {{domxref("Element.scrollIntoView", "scrollIntoView()")}} | ||
| - {{domxref("Element.scrollLeft", "scrollLeft")}} | ||
| - {{domxref("Element.scrollTo", "scrollTo()")}} | ||
| - {{domxref("Element.scrollTop", "scrollTop")}} | ||
| - {{domxref("Element.scrollWidth", "scrollWidth")}} | ||
| - {{domxref("Element/scroll_event", "scroll")}} event | ||
| - {{domxref("Element/scrollend_event", "scrollend")}} event | ||
|
|
||
| ### Extensions to HTMLElement | ||
|
|
||
| - {{domxref("HTMLElement.offsetHeight", "offsetHeight")}} | ||
| - {{domxref("HTMLElement.offsetLeft", "offsetLeft")}} | ||
| - {{domxref("HTMLElement.offsetParent", "offsetParent")}} | ||
| - {{domxref("HTMLElement.offsetTop", "offsetTop")}} | ||
| - {{domxref("HTMLElement.offsetWidth", "offsetWidth")}} | ||
|
|
||
| ### Extensions to HTMLImageElement | ||
|
|
||
| - {{domxref("HTMLImageElement.x", "x")}} | ||
| - {{domxref("HTMLImageElement.y", "y")}} | ||
|
|
||
| ### Extensions to Range | ||
|
|
||
| - {{domxref("Range.getBoundingClientRect", "getBoundingClientRect()")}} | ||
| - {{domxref("Range.getClientRects", "getClientRects()")}} | ||
|
|
||
| ### Extensions to MouseEvent | ||
|
|
||
| - {{domxref("MouseEvent.clientX", "clientX")}} | ||
| - {{domxref("MouseEvent.clientY", "clientY")}} | ||
| - {{domxref("MouseEvent.offsetX", "offsetX")}} | ||
| - {{domxref("MouseEvent.offsetY", "offsetY")}} | ||
| - {{domxref("MouseEvent.pageX", "pageX")}} | ||
| - {{domxref("MouseEvent.pageY", "pageY")}} | ||
| - {{domxref("MouseEvent.screenY", "screenY")}} | ||
| - {{domxref("MouseEvent.x", "x")}} | ||
| - {{domxref("MouseEvent.y", "y")}} | ||
|
|
||
| This module defines geometric utility methods that apply to the {{domxref("Text")}}, {{domxref("Element")}}, {{domxref("CSSPseudoElement")}}, and {{domxref("Document")}} interfaces. These `GeometryUtils` features are not yet implemented in any browser. | ||
|
|
||
| ## Specifications | ||
|
|
||
| {{Specifications}} | ||
|
|
||
| ## See also | ||
|
|
||
| - [CSS Object Model (CSSOM)](/en-US/docs/Web/API/CSS_Object_Model) API | ||
| - [CSSOM view](/en-US/docs/Web/CSS/CSSOM_view) module | ||
| - [CSS overflow](/en-US/docs/Web/CSS/CSS_overflow) module | ||
| - [CSS overscroll behavior](/en-US/docs/Web/CSS/CSS_overscroll_behavior) module | ||
| - [CSS scroll snap](/en-US/docs/Web/CSS/CSS_scroll_snap) module | ||
| - {{glossary("Viewport")}} | ||
| - {{glossary("Layout viewport")}} | ||
| - {{glossary("Visual viewport")}} | ||
| - {{cssxref("zoom")}} | ||
| - {{glossary("CSSOM")}} | ||
| - {{glossary("CSS pixel")}} | ||
| - {{glossary("Scroll container")}} | ||
| - {{htmlelement("meta")}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to move Coordinate_systems but not Viewport_concepts