Closed gdelhumeau closed 9 years ago
@supports
has the same problem:
file1.less:
@media (max-width:767px) {
.class1{
color: #ff0000;
}
}
@supports(display: flex) {
.class1{
display: flex;
}
}
Main file:
@import (reference) "file1.less";
.class3{
&:extend(.class1);
}
Actual result:
.class3 {
background-color: blue;
}
Expected result:
@media (max-width:767px) {
.class3{
color: #ff0000;
}
}
@supports(display: flex) {
.class3{
display: flex;
}
}
Note: less.js ignored supports too. I opened new issue for it (less.js 2359) there.
Thanks!
The example is better than my words to explain the problem:
and
Now I compile file2.less.
Results with less.js:
Results with less4j:
The media query is missing.