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 expansion #219

Closed
CliffS opened this issue Mar 22, 2011 · 2 comments
Closed

Incorrect expansion #219

CliffS opened this issue Mar 22, 2011 · 2 comments

Comments

@CliffS
Copy link

CliffS commented Mar 22, 2011

With the following code:

.align-right {
    text-align : right;
}
span {
    &.align-right {
        color : black;
    }
    .other {
        .align-right;
    }
}

I would expect to get the css for span .other as
span .other {
text-align: right;
}

In practice though I get:
span .other {
color: black;
}

This looks wrong to me.

Cliff.

strk pushed a commit to CartoDB/carto that referenced this issue Mar 22, 2013
strk pushed a commit to CartoDB/carto that referenced this issue Mar 22, 2013
@seven-phases-max
Copy link
Member

Bumping up this issue to consider if it can be closed. I would say this is expected behaviour (at least in LESS 1.4.x and higher). For .other the scope of span has higher precedence than global scope (and presence or lack of & does not change .align-right matching). Ref: #1316, #1205.

@lukeapage
Copy link
Member

yep I agree, this is the only report for this bug so it isn't causing any widespread issue. lets close and consider this as designed.

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

No branches or pull requests

2 participants