You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When beautifying a CSS rule containing a > combinator, the combinator got stuck to the previous selector. Actually, even if it already formatted correctly, the space is removed. It makes quite difficult to use js-beautify in CSS files containing > combinators because it will produce selectors that won't work.
Input
The code looked like this before beautification:
.foo > h3 {
...
}
Expected Output
I would expect the input to not change. The code should have looked like this after beautification:
/* Space here
V */
.foo > h3 {
...
}
Actual Output
The code actually looked like this after beautification:
When beautifying a CSS rule containing a
>
combinator, the combinator got stuck to the previous selector. Actually, even if it already formatted correctly, the space is removed. It makes quite difficult to usejs-beautify
in CSS files containing > combinators because it will produce selectors that won't work.Input
The code looked like this before beautification:
Expected Output
I would expect the input to not change. The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Environment
OS: Archlinux with Emacs web-beautify.el
Also tested under command line only outside of Emacs.
Settings
Defaults
The text was updated successfully, but these errors were encountered: