Closed
Description
Earlier versions of Less offered support for CSS functions that weren't yet supported cross-browser, acting as a de facto Babel-esque (although pre-Babel) polyfill for future CSS syntax.
However:
- Many of these functions are no longer needed, such as the poly-filled color functions. See: https://caniuse.com/#feat=css3-colors
- These monkey-patched functions are now failing at newer features added to CSS, such as custom property values. See: Custom properties inside builtin functions like
rgba()
throw error #2986
Functions that still act as polyfills (don't have cross-browser support) should be discussed, but IMO well-supported functions should stop being polyfilled, and future Less versions should probably not try to polyfill CSS functions.