to_css_identifier

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 “-”.