Skip to content

Add scroll-direction state and updated overflowing state to scrollable in the explainer #12130

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 5 commits into from
Jun 27, 2025
Prev Previous commit
Applied review comments
  • Loading branch information
tursunova committed Jun 27, 2025
commit 7ef063753a63c301b4ac7f0d990c6b2938a34ac1
5 changes: 2 additions & 3 deletions css-conditional-5/scroll_state_explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Can be used to indicate there is content to scroll to in a given direction.

### Direction

Query based on the most recent direction of [scrolling](https://drafts.csswg.org/cssom-view/#scrolling).
Query the most recent direction of [scrolling](https://drafts.csswg.org/cssom-view/#scrolling).
For instance:

```css
Expand All @@ -170,7 +170,7 @@ For instance:
A workaround solution to create queries based on scrolling direction is
described in [Solved by CSS Scroll-Driven Animations: hide a header when
scrolling down, show it again when scrolling up](https://www.bram.us/2024/09/29/solved-by-css-scroll-driven-animations-hide-a-header-when-scrolling-up-show-it-again-when-scrolling-down/),
uses `transition-delay` trick to get the active scroll direction.
uses a `transition-delay` trick to get the active scroll direction.

#### Use Cases and Author Requests

Expand Down Expand Up @@ -257,7 +257,6 @@ Query values for `scrollable`:
Query values for `direction`:

- `none`
- `any`
- `top`
- `right`
- `bottom`
Expand Down