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

Broken output when calc is inside box-shadow #270

Closed
jaydenseric opened this issue Sep 8, 2016 · 2 comments
Closed

Broken output when calc is inside box-shadow #270

jaydenseric opened this issue Sep 8, 2016 · 2 comments
Labels

Comments

@jaydenseric
Copy link

Using calc inside box-shadow results in broken output.

In:

.test {
  box-shadow: inset 0 calc(1em + 1px) 0 1px red;
}

Out:

.test{box-shadow:inset 0 0 1px calc(1em + 1px) red}

For some reason cssnano moves around the values.

@jaydenseric
Copy link
Author

Turns out this is caused by orderedValues.

For webpack users that need a temporary fix, you can add -orderedValues as a query parameter to css-loader to disable the faulty transform:

{
  test: /\.css$/,
  loader: ExtractTextPlugin.extract('style', 'css?-orderedValues')
}

@ben-eb ben-eb closed this as completed Sep 8, 2016
@ben-eb ben-eb added the bug label Sep 8, 2016
@ben-eb
Copy link
Collaborator

ben-eb commented Sep 8, 2016

Thanks, fixed. 👍

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

No branches or pull requests

2 participants