Sass feature-exists() Function

You are Here:

Sass feature-exists() Function

The feature-exists() function returns whether the current Sass implementation supports $feature.

Note: The $feature must be a string.


//Check your console @debug feature-exists("at-error"); // true @debug feature-exists("unrecognized"); // false



Parameter Value

$featureRequiredSpecifies a string. The following are the list of possible values
  • at-error - which means that the @error rule is supported.
  • custom-property - which means that custom property declaration values don’t support any expressions other than interpolation.
  • extend-selector-pseudoclass - which means that the @extend rule will affect selectors nested in pseudo-classes like :not().
  • global-variable-shadowing - which means that a local variable will shadow a global variable unless it has the !global flag.
  • units-level3 - which means that unit arithmetic supports units defined in CSS Values and Units Level 3.

Return Value

trueReturns true for any recognized $feature.
falseReturns false for any unrecognized $feature.


Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author