Skip to content

pantoken-root / plugins/postcss/flatten-property/src / FlattenPropertyOptions

Interface: FlattenPropertyOptions ​

Beta

Options for flattenProperty.

Properties ​

injectSelector? ​

optional injectSelector?: string

Beta

The selector of the rule that receives the extracted --name: value declarations.

Default Value ​

":root"


onMissingInitialValue? ​

optional onMissingInitialValue?: "remove" | "keep"

Beta

What to do with an @property at-rule that has no initial-value descriptor.

  • "remove" — drop the at-rule (default).
  • "keep" — leave it in the output untouched.

Default Value ​

"remove"