From 4934b747ef8bae81ee27d7ef43c7c47c895bceb0 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Sun, 21 May 2023 22:25:13 +0200 Subject: [PATCH] style: Make predefined symbolic counter styles not overridable Differential Revision: https://phabricator.services.mozilla.com/D116938 --- components/style/counter_style/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/style/counter_style/mod.rs b/components/style/counter_style/mod.rs index 1688189d3e0..e470e53ae1f 100644 --- a/components/style/counter_style/mod.rs +++ b/components/style/counter_style/mod.rs @@ -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