style: Make predefined symbolic counter styles not overridable

Differential Revision: https://phabricator.services.mozilla.com/D116938
This commit is contained in:
Xidorn Quan 2023-05-21 22:25:13 +02:00 committed by Oriol Brufau
parent b4546993b4
commit 4934b747ef

View file

@ -55,7 +55,12 @@ pub fn parse_counter_style_name<'i, 't>(
}
fn is_valid_name_definition(ident: &CustomIdent) -> bool {
ident.0 != atom!("decimal") && ident.0 != atom!("disc")
ident.0 != atom!("decimal")
&& ident.0 != atom!("disc")
&& ident.0 != atom!("circle")
&& ident.0 != atom!("square")
&& ident.0 != atom!("disclosure-closed")
&& ident.0 != atom!("disclosure-open")
}
/// Parse the prelude of an @counter-style rule