mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Fixed that in some situations a mixin call into a referenced file wouldn't import media queries. Fixes #1469
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
/*
|
||||
The media statement above is invalid (no selector)
|
||||
We should ban invalid media queries with properties and no selector?
|
||||
*/
|
||||
input[type="text"].class#id[attr=32]:not(1) {
|
||||
color: white;
|
||||
}
|
||||
div#id.class[a=1][b=2].class:not(1) {
|
||||
color: white;
|
||||
}
|
||||
@media print {
|
||||
.class {
|
||||
color: blue;
|
||||
}
|
||||
.class .sub {
|
||||
width: 42;
|
||||
}
|
||||
}
|
||||
.visible {
|
||||
color: red;
|
||||
}
|
||||
@@ -47,3 +57,12 @@
|
||||
.visible {
|
||||
extend: test;
|
||||
}
|
||||
.test-mediaq-import {
|
||||
color: green;
|
||||
test: 340px;
|
||||
}
|
||||
@media (max-size: 450px) {
|
||||
.test-mediaq-import {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user