Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Output from @import (reference) triggered by :extend() and .mixin #178

Open
Vovan-VE opened this issue Oct 24, 2014 · 1 comment
Open

Output from @import (reference) triggered by :extend() and .mixin #178

Vovan-VE opened this issue Oct 24, 2014 · 1 comment

Comments

@Vovan-VE
Copy link

Unexpected output goes from this code:

// lib.less

.mixin(@x) {
    mixed: @x;
}

.parent {
    .mixin(42);
    parent: 37;
}

.lorem:extend(.parent) {
}
.ipsum:extend(.parent) {
    a: b;
}

.dolor {
    .mixin(10);
}

.sit {
    b: c;
}

// -----------------------------

// main.less
@import (reference) "lib.less";

// empty result expected

Empty result is expected, but actual result is:

/* UNEXPECTED OUTPUT */
.lorem,
.ipsum {
  mixed: 42;
  parent: 37;
}

Less.php/1.7.0.2

Similar problem can be caught with @import (reference) "bootstrap-3.2.0.less"; // EOF. .

@dmitry-kulikov
Copy link

+1. Got same issue in less.js, looks similar to this less/less.js#1878.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants