Exclude 'none' from <counter-style-name> after all.

https://github.com/w3c/csswg-drafts/issues/1295
This commit is contained in:
Simon Sapin 2017-04-26 05:39:36 +02:00
parent be38c9a5a7
commit 029150c770
2 changed files with 8 additions and 7 deletions

View file

@ -38,7 +38,8 @@ 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, &[])
// https://github.com/w3c/csswg-drafts/issues/1295 excludes "none"
CustomIdent::from_ident(ident, &["none"])
}
}
}