-
Notifications
You must be signed in to change notification settings - Fork 22.9k
CSS module: viewport #41070
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
CSS module: viewport #41070
Conversation
seems not a single file was built! 🙀 (comment last updated: 2025-09-09 12:07:10) |
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.
@estelle A few bits of feedback for you, but nothing major.
### Glossary terms and definitions | ||
|
||
- {{glossary("Viewport")}} | ||
- [Actual viewport](/en-US/docs/Web/CSS/CSSOM_view/Viewport_concepts#what_is_a_viewport) |
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.
Seems a bit weird to link both of these to the same place, and to put them in the Glossary section when they are not glossary entries. Maybe:
- Put them in related concepts.
- Edit the linked page to include a DL for the terms, so there will be a separate fragment to link to for each one.
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.
it's both "glossary terms" and "definitions" because i think we're trying to get away from single use / spec related glossary entries. I'll create a DL
|
||
The _actual viewport_ is the viewport you get after processing the [viewport `<meta>` tag](/en-US/docs/Web/HTML/Reference/Elements/meta/name/viewport). Content designed for large viewports may exhibit a variety of bugs when viewed in smaller viewports, including unintended wrapping, clipped content, wrong-sized {{glossary("scroll containers")}}. HTML provides a [viewport meta tag](/en-US/docs/Web/HTML/Reference/Elements/meta/name/viewport), `<meta name="viewport">`, to provide hints about the initial size of the viewport. The actual viewport is the size defined by its [`content`](/en-US/docs/Web/HTML/Reference/Elements/meta#content) attribute. If this tag is omitted, some mobile browsers use a fixed initial containing block width (typically `980px`), setting the width of the actual viewport to this values, then scales the content down making making the CSS pixel size smaller than an actual pixel. | ||
|
||
A viewport represents the area in computer graphics being currently viewed. In web browser terms, it is generally the same as the browser window, excluding the UI, menu bar, etc. That is the part of the document you are viewing. For paged media, the initial containing block is based on the page area. The page area can be set through {{cssxref("@page")}} rules. |
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.
It feels like this general description of a viewport should be at the top of the section, before the specifics about initial and actual viewport.
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.
updated.
Co-authored-by: Chris Mills <[email protected]>
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.
W00t!
Part of #40528
Part of github.com/openwebdocs/project/issues/147