Skip to content

Commit

Permalink
fix: wrong & explanation in nesting css selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaychen1e authored Feb 14, 2024
1 parent 63caee7 commit b0b3e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/css_nesting/using_css_nesting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b0b3e99

Please sign in to comment.