Skip to main content

normalize_css_property_name

Function normalize_css_property_name 

Source
pub(crate) fn normalize_css_property_name(prop: &str) -> String
Expand description

Converts a camelCase CSS property name to its hyphenated form.

Custom properties (--*) are returned as-is. Vendor-prefixed properties (e.g. MsTransition, WebkitTapHighlightColor) are converted to their standard hyphenated forms (-ms-transition, -webkit-tap-highlight-color).