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

2d not supported in virtuals #24

Open
cbchouinard opened this issue Jan 27, 2015 · 2 comments
Open

2d not supported in virtuals #24

cbchouinard opened this issue Jan 27, 2015 · 2 comments

Comments

@cbchouinard
Copy link
Member

We should add arithmetic operation support for 2d in virtuals. For example the following doesn't work:

sq2 {

  height: == "quater"[height] / 4;
  width: == "quater"[width] / 4;
  **position: == "quater"[top-right] / 2;**
}

When adding an arithmetic operation after the 2d property it generated an AST using the name of the 2d property.

@d4tocchini
Copy link
Member

2D props work with virtuals, but just found out they don't work nested in expressions...

@cbchouinard
Copy link
Member Author

I'll try to extract the 2d expressions from the AST instead of at the parsing stage.

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