Skip to content

Support constants in calc() #3258

@nex3

Description

@nex3

Values and Units 4 defines pi, e, infinity, -infinity, and NaN constants for use in calc() expressions. We should support these as they land in browsers. The current status (as of 8 February 2022) is:

For the degenerate constants (infinity, -infinity, and NaN) we should not only support parsing them in calc() expressions but also serializing Sass numbers with those values to calc() expressions.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions