DiviArea.Utils.getCssSpecificity()

DiviArea.Utils.getCssSpecificity(selector, attribValue)

Calculates the CSS Specificity of a given selector.

Params

selector string, required
The CSS selector, like body .et_ob_section
prop string, required
The attribute value to compare. The function checks, if the value contains an !important marker.

Returns

An specificity array, consisting of 4 numeric values.

Notes

No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support