Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / shadow-style-removed-out-of-document.html
blob14c243f66fe11735475fc915d49eeeaddbd79015
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description('Remove style element before its shadow root is attached to document but it should not crash.');
5 var div = document.createElement('div');
6 var root = div.createShadowRoot();
7 root.innerHTML = '<style>div { color: green; }</style><div>Hello world</div>';
8 root.removeChild(root.firstChild);
9 </script>