question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adjacent and direct descendant selectors are not space separated

See original GitHub issue

Altought 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:open
  • Created 8 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
FrEaKmAncommented, Nov 14, 2019

For anyone wondering, this has been update to space_around_combinator

1reaction
bitwisemancommented, Aug 30, 2016

@raduluchian - Have you tried setting space_around_selector_separator = true? The name is odd, but I think that will do what you want.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found