From b0b3e9941b74fac6e2c15f56826f1b77b86509be Mon Sep 17 00:00:00 2001 From: jjaychen <31304335+jjaychen1e@users.noreply.github.com> Date: Thu, 15 Feb 2024 01:08:31 +0800 Subject: [PATCH] fix: wrong `&` explanation in nesting css selector. --- files/en-us/web/css/css_nesting/using_css_nesting/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/css/css_nesting/using_css_nesting/index.md b/files/en-us/web/css/css_nesting/using_css_nesting/index.md index 6cb0c6996426e2b..a03651bfc4ff69f 100644 --- a/files/en-us/web/css/css_nesting/using_css_nesting/index.md +++ b/files/en-us/web/css/css_nesting/using_css_nesting/index.md @@ -374,7 +374,7 @@ In the following CSS we are creating the styles for `.card`, `.card h2` and then /* equivalent to `.card h2` */ color: slateblue; .featured & { - /* equivalent to `.featured.card h2` */ + /* equivalent to `.featured :is(.card h2)` */ color: tomato; } }