Skip to content

Commit cdbbc38

Browse files
authored
[css-conditional-5] Update references and resolution to add scroll-state() to explainer (w3c#10707)
* [css-conditional-6] Move scroll-state() explainer Also fix some references from css-contain to css-conditional * Don't move, but fix references. --------- Co-authored-by: Rune Lillesveen <futhark@chromium.org>
1 parent 2c9abcf commit cdbbc38

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

css-conditional-5/scroll_state_explainer.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ depending on this state (see
3737
[this comment](https://github.com/w3c/csswg-drafts/issues/5979#issuecomment-899765136)
3838
and onwards).
3939

40-
There is an [open github issue](https://github.com/w3c/csswg-drafts/issues/6402)
41-
for state container queries where it was resolved to defer to the next level of
42-
the spec - presumably css-contain-4.
40+
There is a [resolution](https://github.com/w3c/csswg-drafts/issues/6402#issuecomment-1812973013)
41+
to add scroll-state() queries.
4342

4443
## Container Queries vs Pseudo Classes
4544

@@ -169,10 +168,10 @@ This needs further exploration.
169168
Add a new scroll-state() function to `@container` similar to `style()` where
170169
`state:value` pairs, and logical combinations of them, can be queried.
171170
`<state-feature>` will be similar to
172-
[`<style-feature>`](https://drafts.csswg.org/css-contain-3/#typedef-style-feature)
171+
[`<style-feature>`](https://drafts.csswg.org/css-conditional-5/#typedef-style-feature)
173172
in that it takes a state name and value separated by a colon.
174173

175-
Add a new [`container-type`](https://drafts.csswg.org/css-contain-3/#container-type)
174+
Add a new [`container-type`](https://drafts.csswg.org/css-conditional-5/#container-type)
176175
for each state which can be combined with size container types:
177176

178177
- `stuck`

0 commit comments

Comments
 (0)