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?

  1. is-superselector(super, sub)
  2. superselector(super, sub)
  3. sub-superselector(super, sub)
  4. 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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.