Allow 'decimal' and 'none' in <counter-style-name>

… other than in `@counter-style`.
This commit is contained in:
Simon Sapin 2017-04-25 10:44:10 +02:00
parent 1146921866
commit 0ff64bdc59
7 changed files with 45 additions and 5 deletions

View file

@ -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")))
}