Auto merge of #19237 - upsuper:error-nested-rule, r=emilio

Use InvalidRule for nested rule list

This fixes [bug 1417548](https://bugzilla.mozilla.org/show_bug.cgi?id=1417548).

Apparently it makes no sense to have different error between top level rules and nested rules.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19237)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-11-16 03:03:48 -06:00 committed by GitHub
commit bf29f64bf6
2 changed files with 2 additions and 3 deletions

View file

@ -354,9 +354,8 @@ fn test_report_error_stylesheet() {
// When @font-feature-values is supported, this should be replaced with two errors
(15, 25, "Invalid rule: '@font-feature-values "),
// FIXME: the message of these two should be consistent
(16, 13, "Invalid rule: '@invalid'"),
(17, 29, "Unsupported rule: '@invalid'"),
(17, 29, "Invalid rule: '@invalid'"),
(18, 34, "Invalid rule: '@supports "),
(19, 26, "Invalid keyframe rule: 'from invalid '"),