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>
8 <iframe id=
"iframe"></iframe>
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
;
24 iframeDocument
.firstChild
.offsetTop
;