Adjacent and direct descendant selectors are not space separated
See original GitHub issueAltought the CSS rule for “selector_separator” is set to " " (space character) this doesn’t apply to rules that use direct descendant selectors or adjacent selectors. For example the following code…
a+b {
...
}
a>b {
...
}
… doesn’t get formatted into this:
a + b {
...
}
a > b {
...
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Descendant combinator - CSS: Cascading Style Sheets | MDN
The descendant combinator — typically represented by a single space (" ") character — combines two selectors such that elements matched by ...
Read more >Selectors - W3C
Descendant selectors express such a relationship in a pattern. A descendant selector is made up of two or more selectors separated by white...
Read more >CSS advanced selectors (Combinators) - HTML
Descendant selector including elements that are not only direct ... A descendant selector is made up of two or more selectors separated by...
Read more >CSS Selectors
Element Type Selectors; Descendant Selectors; Class selectors ... This uses two separate selectors, separated by a space. ... Adjacent sibling selectors.
Read more >CSS 2.1 selectors, Part 2 | 456 Berea Street
A descendant selector is made up of two or more simple selectors separated ... Whitespace is allowed around the adjacent sibling combinator.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone wondering, this has been update to
space_around_combinator
@raduluchian - Have you tried setting
space_around_selector_separator = true
? The name is odd, but I think that will do what you want.