CustomCssValuePenalizerRule

data class CustomCssValuePenalizerRule(val numericValueCondition: CustomCssValuePenalizerNumericCondition? = null, val penalty: Int, val properties: List<CustomCssValuePenalizerRuleProperties>, val values: List<String>? = null)

Constructors

Link copied to clipboard
fun CustomCssValuePenalizerRule(numericValueCondition: CustomCssValuePenalizerNumericCondition? = null, penalty: Int, properties: List<CustomCssValuePenalizerRuleProperties>, values: List<String>? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

Should be used for numeric CSS declarations. The the value matches the condition, the penalty is applied.

Link copied to clipboard
Link copied to clipboard

The name of the CSS properties that should trigger this rule. The rule triggers if any of the defined properties matches "values" or the "numericValueCondition"

Link copied to clipboard
val values: List<String>? = null

The CSS values that should cause the penalty to be applied. The penalty is applied if any of the values matches.