Skip to content

Commit 6043116

Browse files
authored
added boolean container style queries to syntax (mdn#43840)
1 parent 12e3ce1 commit 6043116

File tree

1 file changed

+17
-0
lines changed
  • files/en-us/web/css/reference/at-rules/@container

1 file changed

+17
-0
lines changed

files/en-us/web/css/reference/at-rules/@container/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,23 @@ If no `<container-query>` is specified, named containers are selected.
8181
font-size: 1.5em;
8282
}
8383
}
84+
85+
/* Boolean style() queries */
86+
@container style(--theme: one) or style(--theme: two) {
87+
/* matched container styles */
88+
}
89+
@container style((--theme: one) or (--theme: two)) {
90+
/* matched container styles */
91+
}
92+
@container style(--theme: one) and style(--theme: two) {
93+
/* matched container styles */
94+
}
95+
@container style((--theme: one) and (--theme: two)) {
96+
/* matched container styles */
97+
}
98+
@container not style(--theme: one) {
99+
/* matched container styles */
100+
}
84101
```
85102

86103
### Parameters

0 commit comments

Comments
 (0)