-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Invalid media query merge of MQs inside @import with MQ #1508
Comments
Issue #1502 may be related. Down to hack. I just need advice on where in the tree I should be looking. |
Hi,
If this is a bug, please can you report it seperately, sounds like it needs fixing To fix this, in the following code,
see comment I've added |
I will accept a pull request for this |
Ran into this again. In general MQs within MQs only work in ideal case. I tried fixing this months ago when I first reported issue but realized it was not trivial. Path needs to be re-parsed as it is not currently saved in a useful manner that would allow easy merging. It ended up being a can of worms. Please let me know if someone will look at this, or if the tree will change significantly. |
Tested with 1.4.2 RELEASE and 1.5.0-wip 6fe1174
A media query in a LESS file imported using import with a media query results in an invalid query.
import-test-f.less
import.less
The expected output is
but instead we have
which is an invalid media query. [http://www.w3.org/TR/css3-mediaqueries/#syntax]
Furthermore, in 1.4.2 we have an empty media query with just max-width. This is no longer appearing in the 1.5.0-wip commit above.
Coincidently, the original test fails in 1.4.2 despite the fact that bin/lessc itself outputs the expected CSS. This seems to have been corrected in 1.5.0-wip as well.
The text was updated successfully, but these errors were encountered: