Editorial review: scroll-state scrolled descriptor#43026
Editorial review: scroll-state scrolled descriptor#43026chrisdavidmills merged 14 commits intomdn:mainfrom
Conversation
|
Preview URLs (2 pages)
Flaws (13) Note! 1 document with no flaws that don't need to be listed. 🎉 Found an unexpected or unresolvable flaw? Please report it here. URL:
(comment last updated: 2026-03-10 15:50:09) |
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Show resolved
Hide resolved
estelle
left a comment
There was a problem hiding this comment.
grammar nits and a bit of source re-ordering. Nothing major, unless you want to fix the @container page (and create descriptor pages).
| } | ||
| ``` | ||
|
|
||
| ```css hidden live-sample___scrollable live-sample___scrolled live-sample___snapped live-sample___stuck |
There was a problem hiding this comment.
Let's put the "no support" hidden CSS after all other CSS for the all the examples using it so if the reader hits "play", this less relevant CSS is at the bottom of the CSS tab.
It also makes sense to put all hidden CSS after the shown CSS for the same reason. If there's ever a concern over cascade/specificity, put all the hidden CSS in a layer; anything not in a layer will always take precedence (unless !important is used, which it won't be)
There was a problem hiding this comment.
OK, I've moved the @supports block to the end of the articles, and in the future, I'm going to bear what you've said about this in mind. That said, I'm not going to spend considerable time restructuring all the rest of the CSS source of this article. It is fairly complicated, there are quite a few shared bits, and I don't think the benefit to MDN Playground users outweighs the effort required, and the issue that it'll probably make it harder to edit for future editors.
| Scroll-state [`scrolled`](/en-US/docs/Web/CSS/Reference/At-rules/@container#scrolled) queries, written as `scroll-state(scrolled: value)`, test whether a container's scrolling ancestor was most recently scrolled in the given direction. If not, the query returns false. | ||
|
|
||
| The `value` indicates the direction you are testing for, for example: |
There was a problem hiding this comment.
| Scroll-state [`scrolled`](/en-US/docs/Web/CSS/Reference/At-rules/@container#scrolled) queries, written as `scroll-state(scrolled: value)`, test whether a container's scrolling ancestor was most recently scrolled in the given direction. If not, the query returns false. | |
| The `value` indicates the direction you are testing for, for example: | |
| Scroll-state [`scrolled`](/en-US/docs/Web/CSS/Reference/At-rules/@container#scrolled) queries, written as `scroll-state(scrolled: <keyword>)`, test whether a container's scrolling ancestor was most recently scrolled in the given direction. If not, the query returns false. | |
| The keyword value indicates the direction you are testing for, for example: |
There was a problem hiding this comment.
I agree with this change, but I've kept this as a reminder rather than committing it, as there are four instances to update in the article. I've made those changes in my next commit.
|
|
||
| - `block-start`: Tests whether the container was most recently scrolled towards its block-start edge. | ||
| - `right`: Tests whether the container was most recently scrolled towards its right-hand edge. | ||
| - `y`: Tests whether the container was most recently scrolled in either direction along its y axis. |
There was a problem hiding this comment.
| - `y`: Tests whether the container was most recently scrolled in either direction along its y axis. | |
| - `y`: Tests whether the container was most recently scrolled in either direction along its vertical y-axis. |
or
| - `y`: Tests whether the container was most recently scrolled in either direction along its y axis. | |
| - `y`: Tests whether the container was most recently scrolled up or down along the y-axis. |
There was a problem hiding this comment.
updated in my next commit. Again, I kept it as a reminder rather than committing it, as I thought there'd be multiple instances, but there was only one in the end.
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
estelle
left a comment
There was a problem hiding this comment.
Looks good. a few minor suggestions. approving. Can't wait to use this!
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Show resolved
Hide resolved
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/css/guides/conditional_rules/container_scroll-state_queries/index.md
Outdated
Show resolved
Hide resolved
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
…state_queries/index.md Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Description
Chrome 144 adds support for the
@containerat-rule scroll-statescrolleddescriptor; see https://chromestatus.com/feature/5083137520173056.This PR adds documentation for this new descriptor.
Motivation
Additional details
Related issues and pull requests