mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Exclude 'none' from <counter-style-name> after all.
https://github.com/w3c/csswg-drafts/issues/1295
This commit is contained in:
parent
be38c9a5a7
commit
029150c770
2 changed files with 8 additions and 7 deletions
|
@ -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"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue