mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1685621 - Add more :not() serialization tests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101097
This commit is contained in:
parent
76a6febc54
commit
baecc7fa42
@ -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.is-and-where-better-error-recovery.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())');
|
||||
|
Loading…
Reference in New Issue
Block a user