1 # selector-combinator-space-before
3 Require a single space or disallow whitespace before the combinators of selectors.
6 a > b + c ~ d e >>> f { color: pink; }
8 * These are combinators */
11 Combinators are used to combine several different selectors into new and more specific ones. There are several types of combinators, including: child (`>`), adjacent sibling (`+`), general sibling (`~`), and descendant (which is represented by a blank space between two selectors).
13 The descendant combinator is *not* checked by this rule.
15 Also, `+` and `-` signs within `:nth-*()` arguments are not checked (e.g. `a:nth-child(2n+1)`).
19 `string`: `"always"|"never"`
23 There *must always* be a single space before the combinators.
25 The following patterns are considered violations:
35 The following patterns are *not* considered violations:
38 a + b { color: pink; }
47 There *must never* be whitespace before the combinators.
49 The following patterns are considered violations:
52 a + b { color: pink; }
59 The following patterns are *not* considered violations: