StyleDeclarationSet

case class StyleDeclarationSet(paths: Set[Path], styles: Set[StyleDeclaration], precedence: Precedence)

Represents a set of one or more style declarations.

Value parameters:
paths

the paths the style declarations have been obtained from

precedence

the precedence of this set compared to other provided sets

styles

the style declarations that belong to this set

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

Value members

Concrete methods

Merges the style declaration of this instance with the specified set and returns the merged set in a new instance.

Merges the style declaration of this instance with the specified set and returns the merged set in a new instance.

def collectStyles(target: Element, parents: Seq[Element]): Map[String, String]

Collects all the styles that apply to the specified target element.

Collects all the styles that apply to the specified target element.

Value parameters:
parents

the parents of the specified target element

target

the target element to collect the matching styles for

Returns:

a map representing the keys and values of all styles that apply to the target element

Inherited methods

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