Skip to content

[Proposal] Remove legacy monkey-patch functions #3214

Closed
@matthew-dean

Description

@matthew-dean

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:

  1. Many of these functions are no longer needed, such as the poly-filled color functions. See: https://caniuse.com/#feat=css3-colors
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions