Skip to content

Commit 4ae7450

Browse files
authored
Fix combinator example in selector-max-compound-selectors README (#7485)
A whitespace represents a *descendant combinator*.
1 parent b741dea commit 4ae7450

File tree

1 file changed

+1
-1
lines changed
  • lib/rules/selector-max-compound-selectors

1 file changed

+1
-1
lines changed

lib/rules/selector-max-compound-selectors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Limit the number of compound selectors in a selector.
1010
Lv1 Lv2 Lv3 Lv4 Lv5 -- these are compound selectors */
1111
```
1212

13-
A [compound selector](https://www.w3.org/TR/selectors4/#compound) is a chain of one or more simple (tag, class, ID, universal, attribute) selectors. If there is more than one compound selector in a complete selector, they will be separated by combinators (e.g. ``, `+`, `>`). One reason why you might want to limit the number of compound selectors is described in the [SMACSS book](http://smacss.com/book/applicability).
13+
A [compound selector](https://www.w3.org/TR/selectors4/#compound) is a chain of one or more simple (tag, class, ID, universal, attribute) selectors. If there is more than one compound selector in a complete selector, they will be separated by combinators (e.g. ` `, `+`, `>`). One reason why you might want to limit the number of compound selectors is described in the [SMACSS book](http://smacss.com/book/applicability).
1414

1515
This rule resolves nested selectors before counting the depth of a selector. Each selector in a [selector list](https://www.w3.org/TR/selectors4/#selector-list) is evaluated separately.
1616

0 commit comments

Comments
 (0)