Use InvalidRule for nested rule list.

This commit is contained in:
Xidorn Quan 2017-11-15 13:11:09 -08:00
parent 9863d51451
commit faa6898237
2 changed files with 2 additions and 3 deletions

View file

@ -331,7 +331,7 @@ impl<'a, 'b, R: ParseErrorReporter> NestedRuleParser<'a, 'b, R> {
Ok(rule) => rules.push(rule),
Err((error, slice)) => {
let location = error.location;
let error = ContextualParseError::UnsupportedRule(slice, error);
let error = ContextualParseError::InvalidRule(slice, error);
self.context.log_css_error(self.error_context, location, error);
}
}