Home »
MCQs »
SASS MCQs
Which Sass function is used check whether the super selector matches all the elements that sub matches?
45. Which Sass function is used check whether the super selector matches all the elements that sub matches?
- is-superselector(super, sub)
- superselector(super, sub)
- sub-superselector(super, sub)
- map-superselector(super, sub)
Answer: A) is-superselector(super, sub)
Explanation:
The is-superselector(super, sub) function is used to check whether the super selector matches all the elements that sub matches.
Example:
is-superselector("div", "div.myvalue")
Result: true
is-superselector("div.myvalue", "div")
Result: false