Bug 1856018 - Make forgiving selectors serialize. r=dshin

As per resolution in https://github.com/w3c/csswg-drafts/issues/8356

Safari already does this. Expand the tests they tweaked to be useful
again (test that when non-forgiving parsing is used, then the selector
is invalid).

Differential Revision: https://phabricator.services.mozilla.com/D189666
This commit is contained in:
Emilio Cobos Álvarez
2023-10-03 16:05:24 +00:00
parent 1859ecc92c
commit 09b0938a70
16 changed files with 102 additions and 89 deletions

View File

@@ -1100,6 +1100,7 @@ where
);
anchor.map_or(false, |a| a == element.opaque())
},
Component::Invalid(..) => false,
}
}