CssProperties

open class CssProperties(source)

The properties of a style system by their names, and its shorthands: a shorthand is expanded into the declarations of its longhands

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

the properties

Link copied to clipboard

the names of the properties

Functions

Link copied to clipboard
operator fun get(name: String): CssProperty<*>?

the property name, null when it is not known

Link copied to clipboard
fun longhands(name: String): List<String>?

the longhands of the shorthand name, null when it is not a shorthand

Link copied to clipboard
fun <T> register(property: CssProperty<T>): CssProperty<T>

registers property, a later registration of the same name replaces it

Link copied to clipboard
fun shorthand(name: String, longhands: List<String>, expand: (String) -> List<Pair<String, String>>?)

Registers the shorthand name of longhands, expand gives the values of the longhands of a value as text, null when it is not valid; longhands that it leaves out are set to their initial values

Link copied to clipboard
fun values(declaration: CssDeclaration): List<Pair<String, Any?>>?

The values of declaration: of its property, or of the longhands of a shorthand. Keywords like inherit are given as CssKeywords. Null when the property is not known or the value is not valid.