Checks that a declaration provided by the user is safe.
Parameters
$property_name
stringrequired- Property name in a CSS declaration, i.e. the
color
incolor: red
. $property_value
stringrequired- Value in a CSS declaration, i.e. the
red
incolor: red
.
Source
/**
* Outputs the CSS for layout rules on the root.
*
* @since 6.1.0
* @since 6.6.0 Use `ROOT_CSS_PROPERTIES_SELECTOR` for CSS custom properties and improved consistency of root padding rules.
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.