Skip to content

Commit 97c2782

Browse files
committed
[css-contain-3][editorial] Clarify user-defined tokens in examples
1 parent 4e8f099 commit 97c2782

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

css-contain-3/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,19 @@ Naming Query Containers: the 'container-name' property</h2>
305305
<pre class=lang-css>
306306
main {
307307
container-type: size;
308-
container-name: layout;
308+
container-name: page-layout;
309309
}
310310

311-
.grid-item {
311+
.my-component {
312312
container-type: inline-size;
313-
container-name: component;
313+
container-name: component-library;
314314
}
315315

316-
@container layout (block-size > 12em) {
316+
@container page-layout (block-size > 12em) {
317317
.card { margin-block: 2em; }
318318
}
319319

320-
@container component (inline-size > 30em) {
320+
@container component-library (inline-size > 30em) {
321321
.card { margin-inline: 2em; }
322322
}
323323
</pre>

0 commit comments

Comments
 (0)