Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/cssom/insertRule-page-detached-grouping-rule-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<style>@media all {}</style>
<script>
const sheet = document.styleSheets[0];
const media = sheet.cssRules[0];
sheet.deleteRule(0);
try { media.insertRule("@page foo {}", 0); } catch (e) { }
try { media.insertRule("@page foo:first {}", 0); } catch (e) { }
</script>