diff options
author | Xidorn Quan <me@upsuper.org> | 2017-06-16 16:39:52 +1000 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2017-06-16 16:39:52 +1000 |
commit | 38a0824ccd95c96d5447eb112a6d67fc753830e5 (patch) | |
tree | 4376d4ee4f6b329a2996e7eb5bd6314d0279f33e | |
parent | c58bcc23ea5c4b5f83944e111ce9a2d0ec2b5400 (diff) | |
download | servo-38a0824ccd95c96d5447eb112a6d67fc753830e5.tar.gz servo-38a0824ccd95c96d5447eb112a6d67fc753830e5.zip |
Bug 1372488 - Make counter style 'disc' not overridable.
-rw-r--r-- | components/style/stylesheets/rule_parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs index 0cecb8bf36a..e454b529c59 100644 --- a/components/style/stylesheets/rule_parser.rs +++ b/components/style/stylesheets/rule_parser.rs @@ -365,10 +365,10 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'b> { return Err(StyleParseError::UnsupportedAtRule(name.clone()).into()) } let name = parse_counter_style_name(input)?; - // ASCII-case-insensitive matches for "decimal" are already - // lower-cased by `parse_counter_style_name`, so we can use == - // here. - if name.0 == atom!("decimal") { + // ASCII-case-insensitive matches for "decimal" and "disc". + // The name is already lower-cased by `parse_counter_style_name` + // so we can use == here. + if name.0 == atom!("decimal") || name.0 == atom!("disc") { return Err(StyleParseError::UnspecifiedError.into()) } Ok(AtRuleType::WithBlock(AtRulePrelude::CounterStyle(name))) |