Skip to content

CSS Scroll State Container Queries [css-conditional-5] #261

Open

Description

@lilles

WebKittens

No response

Title of the spec

CSS Conditional Rules Module Level 5

URL to the spec

https://drafts.csswg.org/css-conditional-5/#scroll-state-container

URL to the spec's repository

No response

Issue Tracker URL

No response

Explainer URL

https://drafts.csswg.org/css-conditional-5/scroll_state_explainer.html

TAG Design Review URL

w3ctag/design-reviews#885

Mozilla standards-positions issue URL

mozilla/standards-positions#896

WebKit Bugzilla URL

No response

Radar URL

No response

Description

This is a request for position on adding various (scroll-)state based container queries described in the provided explainer and specified in the css-conditional-5 specification.

Activity

  1. added
    topic: css
    on Oct 2, 2023
  2. changed the title [-]CSS State Container Queries [css-contain-4][/-] [+]CSS Scroll State Container Queries [css-conditional-5][/+] on Sep 26, 2024
  3. deleted a comment from Mstanic05 on Feb 20, 2025
  4. nileshprajapati commented on Dec 17, 2025

    @nileshprajapati

    Chrome has implemented CSS Scroll State Container Queries in version 133.
    https://developer.chrome.com/release-notes/133

    Could you provide Safari's position on this?

  5. woody-li commented on Mar 2, 2026

    @woody-li

    It can resolve a long-standing problem: detecting whether an element is overflowing.
    We can't accurately detect the scrollable state of an overflow: auto element.
    It can be changed in many cases: resize, child elements changes, element attribute changes, etc.

    With Scroll State Queries, it can be very easy:

    @container not scroll-state(scrollable: none) {
      /* … */
    }

    Hope it can be implemented in Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

topic: cssvenue: W3C CSS WG

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions