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
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