mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Make predefined symbolic counter styles not overridable
Differential Revision: https://phabricator.services.mozilla.com/D116938
This commit is contained in:
parent
b4546993b4
commit
4934b747ef
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue