@@ -868,6 +868,8 @@ Container Features</h2>
868
868
A <dfn export>container feature</dfn>
869
869
queries a specific aspect of a [=query container=] .
870
870
871
+ [=Container features=] use the same rules as [=media features=] when evaluating
872
+ in a [=boolean context=] .
871
873
872
874
<h3 id="size-container">
873
875
Size Container Features</h3>
@@ -1127,7 +1129,7 @@ Sticky positioning: the '@container/stuck' feature</h4>
1127
1129
<pre class="descdef mq">
1128
1130
Name : stuck
1129
1131
For : @container
1130
- Value : top | right | bottom | left | block-start | inline-start | block-end | inline-end
1132
+ Value : none | top | right | bottom | left | block-start | inline-start | block-end | inline-end
1131
1133
Type : discrete
1132
1134
</pre>
1133
1135
@@ -1152,10 +1154,10 @@ Sticky positioning: the '@container/stuck' feature</h4>
1152
1154
</pre>
1153
1155
</div>
1154
1156
1155
- In the boolean context, the query matches if visual shift is applied in any
1156
- direction.
1157
-
1158
1157
<dl dfn-type=value dfn-for="@container/stuck">
1158
+ <dt> <dfn>none</dfn>
1159
+ <dd>
1160
+ The ''position/sticky'' container is not shifted in any direction.
1159
1161
<dt> <dfn>top</dfn>
1160
1162
<dd>
1161
1163
The ''position/sticky'' container is shifted to stay inside the top edge.
@@ -1188,27 +1190,29 @@ Scroll snapping: the '@container/snapped' feature</h4>
1188
1190
<pre class="descdef mq">
1189
1191
Name : snapped
1190
1192
For : @container
1191
- Value : x | y | block | inline
1193
+ Value : none | x | y | block | inline
1192
1194
Type : discrete
1193
1195
</pre>
1194
1196
1195
1197
The '@container/snapped' [=container feature=] queries whether a [=snap target=]
1196
- is snapped to its [=snap container=] in the given axis. It matches in the boolean
1197
- context if it is snapped in at least one of the directions.
1198
+ is snapped to its [=snap container=] in the given axis.
1198
1199
1199
1200
<dl dfn-type=value dfn-for="@container/snapped">
1201
+ <dt> <dfn>none</dfn>
1202
+ <dd>
1203
+ The [=query container=] is not a [=snap target=] .
1200
1204
<dt> <dfn>x</dfn>
1201
1205
<dd>
1202
1206
'@container/snapped' [=container feature=] matches ''x''
1203
- if the [=query container=] is a horizontal [=snap target=] for its [=scroll container=]
1207
+ if the [=query container=] is a horizontal [=snap target=] for its [=scroll container=] .
1204
1208
<dt> <dfn>y</dfn>
1205
1209
<dd>
1206
1210
'@container/snapped' [=container feature=] matches ''y''
1207
- if the [=query container=] is a vertical [=snap target=] for its [=scroll container=]
1211
+ if the [=query container=] is a vertical [=snap target=] for its [=scroll container=] .
1208
1212
<dt> <dfn>block</dfn>
1209
1213
<dd>
1210
1214
'@container/snapped' [=container feature=] matches ''block''
1211
- if the [=query container=] is a [=snap target=] for its [=scroll container=]
1215
+ if the [=query container=] is a [=snap target=] for its [=scroll container=] .
1212
1216
in the block direction of the [=snap container=] .
1213
1217
<dt> <dfn>inline</dfn>
1214
1218
<dd>
@@ -1223,7 +1227,7 @@ Overflowing: the '@container/overflowing' feature</h4>
1223
1227
<pre class="descdef mq">
1224
1228
Name : overflowing
1225
1229
For : @container
1226
- Value : top | right | bottom | left | block-start | inline-start | block-end | inline-end
1230
+ Value : none | top | right | bottom | left | block-start | inline-start | block-end | inline-end
1227
1231
Type : discrete
1228
1232
</pre>
1229
1233
@@ -1237,9 +1241,10 @@ Overflowing: the '@container/overflowing' feature</h4>
1237
1241
the [=query container=] . None of the values match if the container is not a
1238
1242
[=scroll container=] .
1239
1243
1240
- In the boolean context, the query matches if any of the values match.
1241
-
1242
1244
<dl dfn-type=value dfn-for="@container/overflowing">
1245
+ <dt> <dfn>none</dfn>
1246
+ <dd>
1247
+ The [=scroll container=] does not have [=scrollable overflow=] in any direction.
1243
1248
<dt> <dfn>top</dfn>
1244
1249
<dd>
1245
1250
The [=scroll container=] has [=scrollable overflow=] past the top edge.
0 commit comments