mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Bug 1372488 - Make counter style 'disc' not overridable.
This commit is contained in:
parent
c58bcc23ea
commit
38a0824ccd
1 changed files with 4 additions and 4 deletions
|
@ -365,10 +365,10 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'b> {
|
||||||
return Err(StyleParseError::UnsupportedAtRule(name.clone()).into())
|
return Err(StyleParseError::UnsupportedAtRule(name.clone()).into())
|
||||||
}
|
}
|
||||||
let name = parse_counter_style_name(input)?;
|
let name = parse_counter_style_name(input)?;
|
||||||
// ASCII-case-insensitive matches for "decimal" are already
|
// ASCII-case-insensitive matches for "decimal" and "disc".
|
||||||
// lower-cased by `parse_counter_style_name`, so we can use ==
|
// The name is already lower-cased by `parse_counter_style_name`
|
||||||
// here.
|
// so we can use == here.
|
||||||
if name.0 == atom!("decimal") {
|
if name.0 == atom!("decimal") || name.0 == atom!("disc") {
|
||||||
return Err(StyleParseError::UnspecifiedError.into())
|
return Err(StyleParseError::UnspecifiedError.into())
|
||||||
}
|
}
|
||||||
Ok(AtRuleType::WithBlock(AtRulePrelude::CounterStyle(name)))
|
Ok(AtRuleType::WithBlock(AtRulePrelude::CounterStyle(name)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue