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

Missing outline size in SCSS minify with @media and var #157

Open
renebuehling opened this issue Jun 18, 2022 · 0 comments
Open

Missing outline size in SCSS minify with @media and var #157

renebuehling opened this issue Jun 18, 2022 · 0 comments

Comments

@renebuehling
Copy link

renebuehling commented Jun 18, 2022

Hello,
I got some weird behaviour that I don't understand:

test.scss

@media screen 
{
  :root {--select-color:blue;}
  .selected {outline: 1px solid var(--select-color);}
}

compiles into test.css ✔

@media screen {
  :root {
    --select-color:blue;
  }

  .selected {
    outline: 1px solid var(--select-color);
  }
}

and minifies into test.min.css ❌

@media screen{:root{--select-color:blue}.selected{outline:solid var(--select-color)}}

In the minified version 1px is missing in outline's styling. This seems to happen only under certain conditions, i.e. for outline, but not for border and only when @media and var() are involved...?

Thank you for any help!

Version: 6.8.122 of Formatter Hero - Beautify Sass/Less/Scss/Typescript/Javascript/Jade/Pug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant