#
CSS
CSS 1.0.2+
#
TC\ComponentLibrary\Util\Css
#
parseCss
Parses a CSS string into an associative array of properties and values.
If a property has multiple definitions, its value will be overridden. In this case, values with the !important
rule can only be overridden by another !important
rule.
public static function parseCss(string $css, array $allowedProperties = []): array
#
Arguments
#
arrayToCss
Returns a CSS string with the properties and values of the passed array.
public static function arrayToCss(array $properties): string
#
Arguments
#
validateCss
public static function validateCss(string $css): bool
Validates a CSS string by parsing via Less_Parser
.