1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviArea.Utils.compareCssSpecificity()

DiviArea.Utils.compareCssSpecificity()

DiviArea.Utils.compareCssSpecificity(a, b)

Determines, which CSS specificity is more specific

Params

a array, required
The first specificity array – see DiviArea.Utils.getCssSpecificity().
b array, required
The second specificity array.

Returns

The comparison result:

-1
a is less specific than b
0
both are equal
+1
a is more specific than b

Notes

No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us