Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / detached-shadow-frame.html
blobf95eb4b7f0b9a84e1427cd320d2933b41a8a6552
1 <!DOCTYPE html>
3 <body>
5 <script src="../../resources/js-test.js"></script>
7 <script>
8 description('Should not be able to create an iframe with a loaded contentDocument that is not in the document tree.');
10 container = document.body.appendChild(document.createElement("div"));
11 helperDiv = container.appendChild(document.createElement("div"));
12 helperFrame = container.appendChild(document.createElement("iframe"));
14 helperFrame.contentWindow.onunload = function() {
15 shadowRoot = helperDiv.createShadowRoot();
16 innerFrame = shadowRoot.appendChild(document.createElement("iframe"));
19 document.body.removeChild(container);
21 shouldBe('innerFrame.contentDocument', 'null');
22 </script>