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

Create mathematical expressions without a hard reference to CssMathExpression #52

Open
DamienCassou opened this issue May 6, 2015 · 1 comment

Comments

@DamienCassou
Copy link

Currently, you can write something like:

style margin: (CssMathExpression on: 2 pc) / 3 + 2 percent

to generate

{
    margin: calc(2pc / 3 + 2%);
}

Why not allowing the following more concise form?

style margin: 2 pc / 3 + 2 percent
@gcotelli
Copy link
Owner

gcotelli commented May 6, 2015

If I remember correctly when the Units project is loaded 2 pc / 3 would do
the arithmetic calculation. I've have to do some conditional loading in the
metacello configuration if the Units project is present because there's
several method conflicts.

When I get home I will check that.

On Wed, May 6, 2015 at 10:35 AM, Damien Cassou notifications@github.com
wrote:

Currently, you can write something like:

style margin: (CssMathExpression on: 2 pc) / 3 + 2 percent

to generate

{
margin: calc(2pc / 3 + 2%);
}

Why not allowing the following more concise form?

style margin: 2 pc / 3 + 2 percent


Reply to this email directly or view it on GitHub
#52.

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