csstools / csstools/postcss-extend-rule
Not working with nested media queries
Open
- Dominant language
- JavaScript
- Stars
- 54
- Forks
- 7
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
Using `postcss-extend-rule` and `postcss-nesting` together but coming across an issue where `@extend` definitions nested media queries are being stripped.
```
.foo {
color: red
}
.bar {
color: blue;
@media (min-width: 768px) {
@extend .red;
}
}
```
I would expect
```
.foo {
color: red
}
.bar {
color: blue;
}
@media (min-width: 768px) {
.bar {
color: red;
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.