mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Use InvalidRule for nested rule list.
This commit is contained in:
parent
9863d51451
commit
faa6898237
2 changed files with 2 additions and 3 deletions
|
@ -331,7 +331,7 @@ impl<'a, 'b, R: ParseErrorReporter> NestedRuleParser<'a, 'b, R> {
|
||||||
Ok(rule) => rules.push(rule),
|
Ok(rule) => rules.push(rule),
|
||||||
Err((error, slice)) => {
|
Err((error, slice)) => {
|
||||||
let location = error.location;
|
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);
|
self.context.log_css_error(self.error_context, location, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -354,9 +354,8 @@ fn test_report_error_stylesheet() {
|
||||||
// When @font-feature-values is supported, this should be replaced with two errors
|
// When @font-feature-values is supported, this should be replaced with two errors
|
||||||
(15, 25, "Invalid rule: '@font-feature-values "),
|
(15, 25, "Invalid rule: '@font-feature-values "),
|
||||||
|
|
||||||
// FIXME: the message of these two should be consistent
|
|
||||||
(16, 13, "Invalid rule: '@invalid'"),
|
(16, 13, "Invalid rule: '@invalid'"),
|
||||||
(17, 29, "Unsupported rule: '@invalid'"),
|
(17, 29, "Invalid rule: '@invalid'"),
|
||||||
|
|
||||||
(18, 34, "Invalid rule: '@supports "),
|
(18, 34, "Invalid rule: '@supports "),
|
||||||
(19, 26, "Invalid keyframe rule: 'from invalid '"),
|
(19, 26, "Invalid keyframe rule: 'from invalid '"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue