#4048·sass

Improve checks for invalid CSS function names

Author: nex3Created Mar 10, 2025Updated Mar 14, 2026
LabelsbugCSS compatibilityrequires deprecation

Currently, it's possible for users to define functions whose names differ from reserved names only by case, such as EXPRESSION() or URL(). These functions can't be invoked normally, because the logic for function calls is case-insensitive, but unlike their lowercase equivalents they're not forbidden at definition-time. We should make the invalid function name check case-insensitive to deprecate and eventually forbid these names.

Edit: I've updated the title to broaden the scope here a bit. There are a number of improvements to be made to this check, mostly in the form of loosening it for cases that aren't (or are no longer) of real concern.


Deprecation

Final Changes