StyleDeclaration

case class StyleDeclaration(selector: StyleSelector, styles: Map[String, String])

Represents a single style declaration.

Value parameters:
selector

the selector to determine which elements this declaration applies to

styles

the styles themselves in a map representing the names and values of each style

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def appliesTo(element: Element, parents: Seq[Element]): Boolean

Indicates whether this style declaration applies to the specified target element.

Indicates whether this style declaration applies to the specified target element.

Value parameters:
element

the target element to apply the selector of this style declaration to

parents

the parents of the specified target element, which also need to match in case the selector of this declaration has parent selectors.

Returns:

true if this style declaration applies to the target element

Returns a new style declaration with the order parameter in its Specificity property increased by the specified amount.

Returns a new style declaration with the order parameter in its Specificity property increased by the specified amount.

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product