Re: [csswg-drafts] [css-ui][selectors][mediaqueries] Expose current scrolling direction (#6400)

I see there were several proposals so far using scroll state container queries, media queries and pseudo classes, giving the latest changes to scroll state container queries, I assume it would be reasonable to use scroll state container queries similar to what @mirisuzanne
proposed in https://github.com/w3c/csswg-drafts/issues/6400#issuecomment-1439063168, but taking to an account latest changes to scroll state container queries, i.e.:

@container container-name scroll-state(scrolling: none) /* no scrolling */
@container container-name scroll-state(scrolling: any) /* scrolling in any direction*/

@container container-name scroll-state(scrolling: y) /* scrolling vertically in any direction */
@container container-name scroll-state(scrolling: up) /* scrolling up */
@container container-name scroll-state(scrolling: down) /* scrolling down */

@container container-name scroll-state(scrolling: x) /* scrolling horizontally in any direction */
@container container-name scroll-state(scrolling: left) /* scrolling left */
@container container-name scroll-state(scrolling: right) /* scrolling right */

@container container-name scroll-state(scrolling: block) /* any block scrolling */
@container container-name scroll-state(scrolling: block-start) /* scrolling towards the start of block direction */
@container container-name scroll-state(scrolling: block-end) /* scrolling towards the end of block direction */

@container container-name scroll-state(scrolling: inline) /* any inline scrolling */
@container container-name scroll-state(scrolling: inline-start) /* scrolling towards the start of inline direction */
@container container-name scroll-state(scrolling: inline-end) /* scrolling towards the end of inline direction */

-- 
GitHub Notification of comment by tursunova
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6400#issuecomment-2794796926 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 10 April 2025 18:35:10 UTC