Commit 8ae9bb98 authored by Tim Nguyen's avatar Tim Nguyen
Browse files

Bug 1685621b - Add more :not() serialization tests. r=emilio, a=jcristau

Differential Revision: https://phabricator.services.mozilla.com/D101097
parent 8f68dad4
......@@ -1243,6 +1243,10 @@ function runTests() {
test_balanced_unparseable(":not(:nth-child(2k))");
test_balanced_unparseable(":not(:nth-child(()))");
// Bug 1685621 - Serialization of :not()
should_serialize_to(":not([disabled][selected])", ":not([disabled][selected])");
should_serialize_to(":not([disabled],[selected])", ":not([disabled], [selected])");
// :-moz-any()
let parseable_if_any_is_is_and_has_better_error_recovery =
SpecialPowers.getBoolPref("layout.css.moz-any-is-is.enabled") &&
......
......@@ -24,6 +24,8 @@
test_valid_selector(':not(:host(.a))');
test_valid_selector(':host(:not(.a))');
test_valid_selector(':not(:host(:not(.a)))');
test_valid_selector(':not([disabled][selected])', ':not([disabled][selected])');
test_valid_selector(':not([disabled],[selected])', ':not([disabled], [selected])');
test_invalid_selector(':not()');
test_invalid_selector(':not(:not())');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment