WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
320328
Evaluate scroll-state(scrolled) container queries
https://bugs.webkit.org/show_bug.cgi?id=320328
Summary
Evaluate scroll-state(scrolled) container queries
klee
Reported
2026-07-26 11:29:19 PDT
The scroll-state(scrolled) container query feature (css-conditional-5 § scrolled) is currently parsed and recognized but always evaluates to false. Unlike scroll-state(scrollable), which reflects the container's current scroll position, scrolled tracks the direction of RELATIVE scrolls and is sticky per axis: - Relative scrolls set it: scrollBy, wheel, keyboard, touch-drag. The direction comes from the sign of the actual (post-clamp) movement — scrolling toward an edge sets that edge and clears the opposite edge on the same axis. - Absolute scrolls are ignored: element.scrollTop=, scrollLeft=, and scrollTo() do not change it (scrolled: none keeps matching). - It is sticky: the state survives a later absolute scroll and persists per axis until the container is scrolled the other way on that axis. Implement evaluation of scroll-state(scrolled) accordingly. Depends on scroll-state(scrollable) evaluation and the runtime re-evaluation infrastructure. Spec:
https://drafts.csswg.org/css-conditional-5/#scrolled
Attachments
Add attachment
proposed patch, testcase, etc.
klee
Comment 1
2026-07-26 11:42:46 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/70213
Radar WebKit Bug Importer
Comment 2
2026-08-02 11:30:13 PDT
<
rdar://problem/183869604
>
EWS
Comment 3
2026-11-13 20:36:21 PST
Committed
326742@main
(486888e66f3c): <
https://commits.webkit.org/326742@main
> Reviewed commits have been landed. Closing PR #70213 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug