Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / crash-layout-detached-document.html
blobf7eef38acf159f031769689cdd91149ea2e98cd6
1 <!DOCTYPE html>
3 <link id="sheet" href="doesnotexist.css" rel="stylesheet">
5 <p>Bug 377724: Don't crash when calling into layout on a detached document.</p>
7 <div id="first"></div>
8 <iframe id="iframe"></iframe>
10 <script>
11 onload = function() {
12 if (window.testRunner)
13 testRunner.dumpAsText();
14 var iframeDocument = iframe.contentDocument;
15 // Need to use link elements in this test to create placeholder styles so
16 // we'll go into the Force case inside updateLayoutIgnorePendingStylesheets.
17 var link = document.createElement("link");
18 link.href = "doesnotexist.css";
19 link.rel = "stylesheet";
20 document.getElementById("first").appendChild(document.getElementById("sheet"));
21 iframeDocument.replaceChild(link, iframeDocument.documentElement);
22 document.body.offsetTop;
23 iframe.remove();
24 iframeDocument.firstChild.offsetTop;
26 </script>