aeschli / vscode-css-formatter

CSS Formatter for VSCode
Other
18 stars 6 forks source link

Mandatory space before :global gets removed #3

Closed marcselman closed 3 years ago

marcselman commented 7 years ago

When using CSS Modules I sometimes use :global inside my CSS selector to access global class names instead of local ones.

Example:

.row :global .icon {
    border: 1px solid #ff0000;
}

Your formatter removes the space before :global which is not permitted.

aeschli commented 3 years ago

This seems to work now with the latest update of js-beautify.