csstree / csstree/stylelint-validator

Compound interpolated expressions throw "Invalid prelude for @media csstree/validator"

Open
#52 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
92
Forks
11
PR merge metrics
No merged PRs in 30d

Description

With version 2.1.0, using the `postcss-lit` custom syntax, compound interpolated expressions like this error

```css
@media (min-width: 500px) and ${namedMedia.css.mobile} {
/* ... */
}
```
whereas this doesn't

```css
@media ${namedMedia.css.mobile} {
/* ... */
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.