Skip to content

Instantly share code, notes, and snippets.

@garkin
Last active November 27, 2017 07:36
Show Gist options
  • Save garkin/dd5204da4f4f5e1abd07c6c80bf27a7a to your computer and use it in GitHub Desktop.
Save garkin/dd5204da4f4f5e1abd07c6c80bf27a7a to your computer and use it in GitHub Desktop.
less.js bug
@import (reference) "./referenced.less";
@media (hover) {
}@media (hover) {
}
.referenced {
// line comment is enough to reproduce it
@media (hover) {
// sezam
}
// repeat to prove point
@media (hover) {
// sezam
}
// but block comment is not, huh
@media (hover) {
/* salabim */
}
// following not outputs, needs line comment
@media (hover) {
color: #000000;
}
}
// needs to be nested to fail
@media (hover) {
// sezam
}
@garkin
Copy link
Author

garkin commented Nov 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment