style_derive::cg

Function to_css_identifier

source
pub(crate) fn to_css_identifier(camel_case: &str) -> String
Expand description

Transforms “FooBar” to “foo-bar”.

If the first Camel segment is “Moz”, “Webkit”, or “Servo”, the result string is prepended with “-”.