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

numerical @value object name and expressions #72

Open
Mouvedia opened this issue Sep 23, 2012 · 0 comments
Open

numerical @value object name and expressions #72

Mouvedia opened this issue Sep 23, 2012 · 0 comments

Comments

@Mouvedia
Copy link
Member

When an author uses @value to generate a number, its intention is most of the time to use it as a kind of custom unit like so:

@value rh { ref(height of @root) / 100 }

element
{
    //accepts numbers
    property: 15 * rh;
}

What I am proposing is letting the user do what he really wants:

element
{
    //would be equivalent
    property: 15rh;
}

In the same way that the universal selector can be ommited in certain cases, the multiplication operator could be as well if the number is prefixed to the custom unit generated using @value.

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

1 participant