Skip to content

Commit

Permalink
fix(docs): typo and logic in css nesting examples (mdn#29078)
Browse files Browse the repository at this point in the history
fix(docs): typo and logic in iss nesting
  • Loading branch information
weskeiser authored Sep 12, 2023
1 parent fe221c3 commit 1a8a8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/css/css_nesting/using_css_nesting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ As opposed to:
.foo {
/* .foo styles */
.bar & {
/* .bar .for styles */
/* .bar .foo styles */
}
}
```
Expand Down 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` */
/* equivalent to `.featured .card h2` */
color: tomato;
}
}
Expand Down

0 comments on commit 1a8a8c3

Please sign in to comment.