From 38a0824ccd95c96d5447eb112a6d67fc753830e5 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Fri, 16 Jun 2017 16:39:52 +1000 Subject: [PATCH] Bug 1372488 - Make counter style 'disc' not overridable. --- components/style/stylesheets/rule_parser.rs | 8 ++++---- 1 file 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)))