mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Allow 'decimal' and 'none' in <counter-style-name>
… other than in `@counter-style`.
This commit is contained in:
parent
1146921866
commit
0ff64bdc59
7 changed files with 45 additions and 5 deletions
|
@ -38,7 +38,7 @@ pub fn parse_counter_style_name(input: &mut Parser) -> Result<CustomIdent, ()> {
|
|||
if let Some(&lower_cased) = predefined(&ident) {
|
||||
Ok(CustomIdent(Atom::from(lower_cased)))
|
||||
} else {
|
||||
CustomIdent::from_ident(ident, &["decimal", "none"])
|
||||
CustomIdent::from_ident(ident, &[])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -248,6 +248,7 @@ counter_style_descriptors! {
|
|||
|
||||
/// https://drafts.csswg.org/css-counter-styles/#counter-style-fallback
|
||||
"fallback" fallback / eCSSCounterDesc_Fallback: Fallback = {
|
||||
// FIXME https://bugzilla.mozilla.org/show_bug.cgi?id=1359323 use atom!()
|
||||
Fallback(CustomIdent(Atom::from("decimal")))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue