Skip to content

last declaration wins with mixins as function?? #2150

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

Closed
bassjobsen opened this issue Aug 16, 2014 · 2 comments
Closed

last declaration wins with mixins as function?? #2150

bassjobsen opened this issue Aug 16, 2014 · 2 comments

Comments

@bassjobsen
Copy link
Contributor

I try to understand why last declaration wins is not applied when using mixins as function.

I try to compile the following code:

.useasfunction(@input)
{
   @return: @input;
}

p {
.useasfunction(first);
property1: @return;
property1a: @local;
@local:first;
.useasfunction(last);
property2: @return;
property2a: @local;
@local:last;
}

Which compiles into the following CSS code:

p {
property1: first;
property1a: last;
property2: first;
property2a: last;
}

@seven-phases-max
Copy link
Member

See #1892.

@seven-phases-max
Copy link
Member

Closing as "expected behaviour" (and duplicate of #1892).

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

No branches or pull requests

2 participants