Skip to content

Variables in namespace parsing error #747

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
MarSOnEarth opened this issue Apr 3, 2012 · 3 comments
Closed

Variables in namespace parsing error #747

MarSOnEarth opened this issue Apr 3, 2012 · 3 comments

Comments

@MarSOnEarth
Copy link

The Wiki shows the following example:

#defaults {
    @width: 960px;
    @color: black;
}

.article { color: #294366; }

.comment {
    width: #defaults[@width];
    color: .article['color']; 
}

BUT the following fails with 1.3:

@width: 10px;
#ns {
    @paneW: @width;
}
// and using it
.pane {
    width: #ns[@paneW];
}
@souldreamer
Copy link

Actually, both the namespace accessors from the wiki example fail under less 1.3.0... :(

@MarSOnEarth
Copy link
Author

I didn't think of testing the examples :/

And yes, both fail; just tested on my code

This is a serious letdown for me. I was planning on sniffing element
dimensions and using them to position other elements.

/MarS

On Tue, Apr 3, 2012 at 4:50 AM, Ionut Costica
reply@reply.github.com
wrote:

Actually, both the namespace accessors from the example fail under less 1.3.0... :(


Reply to this email directly or view it on GitHub:
#747 (comment)

@lukeapage
Copy link
Member

duplicate of #76

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

3 participants