We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7793d9 commit 4912191Copy full SHA for 4912191
css-nesting-1/Overview.bs
@@ -238,6 +238,33 @@ Direct Nesting {#direct}
238
}
239
/* equivalent to
240
.foo:is(.bar, .foo:is(.baz)) { color: red; }
241
+ main {
242
+ display: grid;
243
+ & > section {
244
+ background: white;
245
+ & > header {
246
+ font-size: 1.25rem;
247
+ }
248
249
250
+ /* equivalent to
251
+ main { display: grid; }
252
+ main > section { background: white; }
253
+ main > section > header { font-size: 1.25rem; }
254
+ */
255
+
256
257
+ & > section,
258
+ & > article {
259
260
261
262
263
264
265
266
+ main > :is(section, article) { background: white; }
267
+ main > :is(section, article) > header { font-size: 1.25rem; }
268
*/
269
</pre>
270
0 commit comments