ladybird/Tests/LibWeb/Crash/CSS/media-query-evaluation-without-window.html
Callum Law b1801c0bc9 LibWeb: Avoid crash evaluating media query in document lacking window
In some cases a document may lack an associated window - to fix this for
now we just return false but perhaps there are some media queries we
should still attempt to resolve.
2025-10-17 18:24:59 +02:00

6 lines
156 B
HTML

<!DOCTYPE html>
<html>
<script>
const dom = new DOMParser().parseFromString(`<style media="width < 50px">`, "text/html");
</script>
</html>