Skip to content

Commit

Permalink
rephrase browser parse code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Oct 27, 2023
1 parent c45e3c8 commit 6c4f813
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions files/en-us/web/css/nesting_selector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Consider an example where we want to style an element, providing styles to be ap
}
}

/* the browser parses this as */
/* the browser parses above nested rules as */

.parent-rule {
/* parent rule properties */
}
Expand All @@ -81,7 +82,8 @@ With the **`&` nesting selector** added with no whitespace, the elements matched
}
}

/* the browser parses this as */
/* the browser parses above nested rules as */

.parent-rule {
/* parent rule properties */
}
Expand All @@ -103,7 +105,8 @@ The `&` nesting selector can also be appended to reverse the context of the rule
}
}

/* the browser parses this as */
/* the browser parses above nested rules as */

.card {
/* .card styles */
}
Expand All @@ -123,7 +126,8 @@ The `&` nesting selector can be placed multiple times:
}
}

/* the browser parses this as */
/* the browser parses above nested rules as */

.card {
/* .card styles */
}
Expand Down

0 comments on commit 6c4f813

Please sign in to comment.