chromium/third_party/blink/web_tests/fast/css/shadow-style-removed-out-of-document.html

<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script>
description('Remove style element before its shadow root is attached to document but it should not crash.');
var div = document.createElement('div');
var root = div.attachShadow({mode: 'open'});
root.innerHTML = '<style>div { color: green; }</style><div>Hello world</div>';
root.removeChild(root.firstChild);
</script>