Sass is-superselector() Function
You are Here:
Sass is-superselector() Function
The is-superselector()
function returns whether the selector $super matches all the elements that the selector $sub matches. It still returns true even if $super matches more elements than $sub.
Note: The $super and $sub selectors may contain placeholder selectors, but not parent selectors.
Example
SASS TO CSS CONVERTER
//Check your console
@debug is-superselector("a", "a.span"); // true
@debug is-superselector("button", ".foo > h3"); // false
Syntax
is-superselector($super, $sub)
Parameter Value
Value | Type | Explanation |
---|---|---|
$super | Required | Specifies a css selector. |
$sub | Required | Specifies a css selector. |
Return Value
Value | Explanation |
---|---|
bool | Returns whether the selector $super matches all the elements that the selector $sub matches. |
Reminder
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.