4 <title>Resize-notifying IFRAME
</title>
5 <script type=
"application/ecmascript">
10 * the test is done after the width becomes narrower (immediately)
11 * and then comes back to the same size. However, the two things
12 * might happen at once.
15 gTarget = window.innerWidth;
16 window.addEventListener(
"resize", got_resize, false);
17 setTimeout(got_resize,
200);
20 function got_resize() {
21 if (window.innerWidth == gTarget) {
23 // Remove the
class=
"reftest-wait" from the top window
24 window.top.document.documentElement.removeAttribute(
"class");