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 selector issue (header > div[class~="div-all"]) in SCSS file #1373

Closed
TudorHulban opened this issue Apr 11, 2018 · 2 comments · Fixed by #1479
Closed

CSS selector issue (header > div[class~="div-all"]) in SCSS file #1373

TudorHulban opened this issue Apr 11, 2018 · 2 comments · Fixed by #1479

Comments

@TudorHulban
Copy link

TudorHulban commented Apr 11, 2018

Input

The code looked like this before beautification:

header > div[class~="div-all"]

Expected Output

The code should have looked like this after beautification:

header > div[class~="div-all"]

Actual Output

The code actually looked like this after beautification:

header > div[class ~ ="div-all"]

Steps to Reproduce

actual output is not compiled by SASS compiler.

Environment

OS: Linux Mint 18.3 XFCE

Settings

Brackets 1.12.0-17621
Brackets Beautify Version: 2.5.1

code excerpt

header > div[class~="div-all"],
header > div[class~="div-go"] {
    margin-left: -20px;
}
@MacKLess
Copy link
Collaborator

MacKLess commented Aug 6, 2018

@TudorHulban
I just ran your example through v1.8.0-rc4 and the actual output now looks like:

header>div[class~="div-all"]

I'm not sure if this is better, but the issue appears to have changed. Take a look for yourself at http://jsbeautifier.org/

@TudorHulban
Copy link
Author

hi,
verified in http://jsbeautifier.org/ with the below and obtained body>div[class~="div1"] which does not break the CSS selector.
thank you!

<title>Document</title>
xxx
<style> body>div[class~="div1"] { margin-left: 20px } </style>

@bitwiseman bitwiseman modified the milestones: v1.8.x, 1.8.0-rc7 Aug 14, 2018
@bitwiseman bitwiseman modified the milestones: 1.8.0-rc8, 1.8.0 Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants