Skip to content

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

@calvinjuarez

Description

@calvinjuarez

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()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions