Skip to content
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

Incorrect generated selector with @import and extend #3032

Closed
zxcabs opened this issue Feb 21, 2017 · 3 comments
Closed

Incorrect generated selector with @import and extend #3032

zxcabs opened this issue Feb 21, 2017 · 3 comments
Labels

Comments

@zxcabs
Copy link

zxcabs commented Feb 21, 2017

Hello,
here is an example for reproduce the bug
less version: 2.7.2 and v3.0.0-alpha.1

bar.less

.foo {
  background: red;
}

.bar {
  &:extend(.foo all);
  font-size: 10px;
}

root.less

.root {
  @import './bar';
}

Actual result:

.root .foo,
.root .root .bar {
  background: red;
}
.root .bar {
  font-size: 10px;
}

Expected result:

.root .foo,
.root .bar {
  background: red;
}
.root .bar {
  font-size: 10px;
}
@seven-phases-max
Copy link
Member

seven-phases-max commented Mar 17, 2017

This is expected behaviour. See #1850 (and other issues referenced there, e.g. #2052, for variations).

@seven-phases-max
Copy link
Member

Closing as duplicate of #1850.

@stale
Copy link

stale bot commented Nov 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 14, 2017
@stale stale bot closed this as completed Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants