mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
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:
Notes:
github-actions[bot]
2024-11-13 20:39:08 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/2a5dbedad4e
@@ -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>
|
||||
Reference in New Issue
Block a user