-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add container scroll-state queries (#2567)
This is expected to ship in Chrome 133: https://chromestatus.com/feature/5072263730167808
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Container scroll-state queries | ||
description: Container scroll-state queries with the `@container scroll-state(...)` at-rule apply styles to an element based on the sticky positioning, snapped, and scrollable state of the container. | ||
# Note that a fourth state for scroll direction is being discussed: | ||
# https://github.com/w3c/csswg-drafts/issues/6400 | ||
# https://github.com/w3c/csswg-drafts/issues/11191 | ||
# TODO: If shipped, update the description or split into smaller features. | ||
spec: https://drafts.csswg.org/css-conditional-5/#scroll-state-container | ||
group: container-queries | ||
compat_features: | ||
- css.properties.container-type.scroll-state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Generated from: container-scroll-state-queries.yml | ||
# Do not edit this file by hand. Edit the source file instead! | ||
|
||
status: | ||
baseline: false | ||
support: {} | ||
compat_features: | ||
- css.properties.container-type.scroll-state |