Revert "LibWeb/CSS: Keep invalid parts of <forgiving-selector-list>s around"

This reverts commit 698dd600f2.

This caused multiple tests to crash on macOS:
https://github.com/LadybirdBrowser/ladybird/pull/2317#issuecomment-2474725826
This commit is contained in:
Andreas Kling
2024-11-13 21:37:34 +01:00
parent 698dd600f2
commit 2a5dbedad4
Notes: github-actions[bot] 2024-11-13 20:39:08 +00:00
8 changed files with 3 additions and 110 deletions

View File

@@ -1,17 +0,0 @@
<!DOCTYPE html>
<style id="style"></style>
<script src="../include.js"></script>
<script>
test(() => {
const selectors = [
":is(hello, !?)",
":is(what, :fake(:imaginary), really)",
];
let stylesheet = document.styleSheets[0];
for (let selector of selectors) {
stylesheet.insertRule(`${selector} { }`);
println(`${selector} -> ${stylesheet.cssRules[0].selectorText}`);
stylesheet.deleteRule(0);
}
});
</script>