Specificity
laika.ast.styles.Specificity
case class Specificity(ids: Int, classes: Int, types: Int, order: Int) extends Ordered[Specificity]
Represents the specificity of a style selector or predicate. This is modeled after the precedence rules of the CSS standard.
Attributes
- Source
- styles.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Ordered[Specificity]trait Comparable[Specificity]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Adds this and the given specificity by summing all its individual parameters.
Adds this and the given specificity by summing all its individual parameters.
Attributes
- Source
- styles.scala
Compares this instance with the given specificity.
Compares this instance with the given specificity. Applies the CSS standard weighting of first comparing the number of specified ids, followed by classes, then types and finally the order.
Attributes
- Source
- styles.scala
Inherited methods
Attributes
- Inherited from:
- Ordered
Attributes
- Inherited from:
- Ordered
Attributes
- Inherited from:
- Ordered
Attributes
- Inherited from:
- Ordered
Attributes
- Inherited from:
- Ordered
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article