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

--math AKA align strict math behavior with documentation. #3273

Closed
calvinjuarez opened this issue Jul 7, 2018 · 2 comments
Closed

--math AKA align strict math behavior with documentation. #3273

calvinjuarez opened this issue Jul 7, 2018 · 2 comments

Comments

@calvinjuarez
Copy link
Member

Per a gitter discussion:

--math=(always|no-division|parens|strict|strict-legacy)
-m=...

always:

  • height: (5px + 5px) + 2px;height: 12px;
  • width: 10px + 1;width: 11px;
  • width: (10px + 1);width: 11px;
  • font: 16 / 4;font: 4;
  • font: (16 / 4);font: 4;

no-division:

  • height: (5px + 5px) + 2px;height: 12px;
  • width: 10px + 1;width: 11px;
  • width: (10px + 1);width: 11px;
  • font: 16 / 4;font: 16 / 4;
  • font: (16 / 4);font: 4;

parens AND strict:

  • height: (5px + 5px) + 2px;height: 10px + 2px;
  • width: 10px + 1;width: 10px + 1;
  • width: (10px + 1);width: 11px;
  • font: 16 / 4;font: 16 / 4;
  • font: (16 / 4);font: 4;

strict-legacy:

  • height: (5px + 5px) + 2px;height: (5px + 5px) + 2px;
  • width: 10px + 1;width: 10px + 1;
  • width: (10px + 1);width: 11px;
  • font: 16 / 4;font: 16 / 4;
  • font: (16 / 4);font: 4;

Some Questions to Consider:

What about calc()?

@matthew-dean
Copy link
Member

@calvinjuarez I went with parens-all and parens-division - see PR - #3274

@matthew-dean
Copy link
Member

matthew-dean commented Jul 7, 2018

Closing just so we can keep the discussion in one place (in PR)

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