Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/cssom/set-selector-text-detached-rule-delete-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Crash when mutating selector test on detached rule tree (delete)</title>
<script>
const sheet = new CSSStyleSheet();
sheet.replaceSync('.a { .b { .c {} } } }');
const a = sheet.cssRules[0];
const b = a.cssRules[0];
b.cssRules[0];
sheet.deleteRule(0);
b.selectorText = '.bb';
b.insertRule('.r {}');
a.selectorText = '.aa';
</script>