Bug 1386900 - Add test for parsing invalid filter values. r=xidorn

MozReview-Commit-ID: FxbyxXRGmBB
This commit is contained in:
Josh Mattheus 2017-09-06 21:25:14 +02:00 коммит произвёл Emilio Cobos Álvarez
Родитель c1ce25b771
Коммит 1642794aa1
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -14,6 +14,9 @@
{ css: "x { color: invalid; }", error: "Expected color but found invalid. Error in parsing value for color. Declaration dropped." },
{ css: "x { filter: alpha(foo); }", error: "Expected none, URL, or filter function but found alpha(. Error in parsing value for filter. Declaration dropped." },
{ css: "x { filter: 5; }", error: "Expected none, URL, or filter function but found 5. Error in parsing value for filter. Declaration dropped." },
{ css: "::unknown {}", error: "Unknown pseudo-class or pseudo-element unknown. Ruleset ignored due to bad selector." },
{ css: ":unknown {}", error: "Unknown pseudo-class or pseudo-element unknown. Ruleset ignored due to bad selector." },
{ css: "::5 {}", error: "Expected identifier for pseudo-class or pseudo-element but found 5. Ruleset ignored due to bad selector." },