File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,11 @@ Syntax {#syntax}
292
292
along with its contents,
293
293
but does not invalidate its parent rule.
294
294
295
+ Nested rules with [=relative selectors=]
296
+ include the specificity of their implied [=nesting selector=] .
297
+ For example, ''.foo { > .bar {...}}'' and ''.foo { & > .bar {...}}''
298
+ have the same specificity for their inner rule.
299
+
295
300
<div class=note>
296
301
Some CSS-generating tools that preprocess nesting
297
302
will concatenate selectors as strings,
@@ -358,7 +363,15 @@ Syntax {#syntax}
358
363
when we move ''&'' itself to Selectors;
359
364
I'm monkey-patching for convenience here.
360
365
361
- <!-- Big Text: example -->
366
+ <!--
367
+ ████████ ██ ██ ███ ██ ██ ████████ ██ ████████
368
+ ██ ██ ██ ██ ██ ███ ███ ██ ██ ██ ██
369
+ ██ ██ ██ ██ ██ ████ ████ ██ ██ ██ ██
370
+ ██████ ███ ██ ██ ██ ███ ██ ████████ ██ ██████
371
+ ██ ██ ██ █████████ ██ ██ ██ ██ ██
372
+ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
373
+ ████████ ██ ██ ██ ██ ██ ██ ██ ████████ ████████
374
+ -->
362
375
363
376
<h3 id=syntax-examples>
364
377
Examples</h3>
You can’t perform that action at this time.
0 commit comments