public function SelectorNode::getSpecificity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Node/SelectorNode.php \Symfony\Component\CssSelector\Node\SelectorNode::getSpecificity()
Returns node's specificity.
Return value
Overrides NodeInterface::getSpecificity
File
- vendor/
symfony/ css-selector/ Node/ SelectorNode.php, line 63
Class
- SelectorNode
- Represents a "<selector>(::|:)<pseudoElement>" node.
Namespace
Symfony\Component\CssSelector\NodeCode
public function getSpecificity() {
return $this->tree
->getSpecificity()
->plus(new Specificity(0, 0, $this->pseudoElement ? 1 : 0));
}