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

[Bug] css class & pseudo element bug #157

Open
ljm12914 opened this issue Oct 15, 2022 · 2 comments
Open

[Bug] css class & pseudo element bug #157

ljm12914 opened this issue Oct 15, 2022 · 2 comments
Assignees
Labels
Type: Bug Something isn't working as expected.

Comments

@ljm12914
Copy link

🐞 Bug Report

Describe the bug

  • When a CSS class selector (.class) is followed by a pesudo element (etc. ::after) with a space, which will select the descendent of this class, is minified, the space is lost, causing the style to be only applied to the very element which has the class attribute.

Is this a regression?

I don't know it very clearly.


To Reproduce

  1. Create a .css file
  2. Write something like .class ::after{}
  3. Right click and choose "Minify this Document and preserve the original" (Other options will reproduce the bug as well)
  4. See error: The space in the middle of .class ::after{} was lost.

Expected behaviour

This space should not be minified.


Your environment

EXTENSION VERSION: 2.10.0

VS Code version: 1.72.2 (system setup)

commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075

date: 2022-10-12T22:15:18.074Z

Electron: 19.0.17

Chromium: 102.0.5005.167

Node.js: 16.14.2

V8: 10.2.154.15-electron.0

OS: Windows_NT x64 10.0.19044

sandbox: No


Additional context

@ljm12914 ljm12914 added the Type: Bug Something isn't working as expected. label Oct 15, 2022
@welcome
Copy link

welcome bot commented Oct 15, 2022

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

@rawriddims
Copy link

It happens to me also, for example in .separator :hover {... the space before :hover is lost.
Any chance to fix this bug within a reasonable time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

3 participants