Skip to content

Commit

Permalink
[Calc Functions] Substantially refactor calculation parsing (#3661)
Browse files Browse the repository at this point in the history
This allows calculation syntax to coexist with user-defined Sass
functions instead of needing every new calculation function to break
all existing Sass functions of the same name.

See #3504
  • Loading branch information
nex3 authored Aug 28, 2023
1 parent 1523bff commit a7aae4d
Show file tree
Hide file tree
Showing 2 changed files with 228 additions and 158 deletions.
11 changes: 11 additions & 0 deletions accepted/calc-functions.changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## Draft 3.0

* Refactor the way calculations are parsed to allow them to coexist with
user-defined Sass functions of the same names.

* No longer forbid user-defined functions with the same names as CSS math
functions and remove the associated deprecation process.

* Drop support for interpolation in calculations outside of identifier position
and add a deprecation process for this.

## Draft 2.1

* Allow custom functions named like vendor-prefixed new CSS functions.
Expand Down
Loading

0 comments on commit a7aae4d

Please sign in to comment.