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

Fix media query processing #179

Open
georges-g opened this issue Sep 5, 2023 · 0 comments
Open

Fix media query processing #179

georges-g opened this issue Sep 5, 2023 · 0 comments

Comments

@georges-g
Copy link

There is an issue with how postcss-sass processes media queries.

It makes it impossible to use with stylelint. See the issue there.

The source should not return undefined:

> require('postcss-sass').parse('@media(max-width: 40rem)\n  color: red').nodes[0].source
undefined

> require('postcss-scss').parse('@media(max-width: 40rem) { color: red }').nodes[0].source
{
  input: Input {
    css: '@media(max-width: 40rem) { color: red }',
    hasBOM: false,
    id: '<input css FGAgvV>',
    [Symbol(fromOffsetCache)]: [ 0 ]
  },
  start: { column: 1, line: 1, offset: 0 },
  end: { column: 39, line: 1, offset: 38 }
}
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