Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] Formatting removes useful space #147060

Closed
anthonyvdotbe opened this issue Apr 8, 2022 · 1 comment
Closed

[css] Formatting removes useful space #147060

anthonyvdotbe opened this issue Apr 8, 2022 · 1 comment
Assignees

Comments

@anthonyvdotbe
Copy link

Issue Type: Bug

When formatting the following CSS, the space between "(" and counter(foo) on the penultimate line is removed. This results in less readable code & an ugly asymmetry, since the space between counter(foo) and ")" isn't removed. Moreover, it currently triggers #147059

body {
    counter-reset: foo;
}

bar::before {
    counter-increment: foo;
    content: "(" counter(foo) ")";
}

VS Code version: Code - Insiders 1.67.0-insider (a3d53f7, 2022-04-07T05:15:43.863Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No

Extensions: none

@aeschli
Copy link
Contributor

aeschli commented Apr 8, 2022

We use beautifyjs as the underlying CSS formatter. Would you mind filing this request directly against https://github.com/beautify-web/js-beautify ?

@aeschli aeschli closed this as completed Apr 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants