mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
32
layout/reftests/font-face/restore-size-detector-iframe.html
Normal file
32
layout/reftests/font-face/restore-size-detector-iframe.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Resize-notifying IFRAME</title>
|
||||
<script type="application/ecmascript">
|
||||
|
||||
var gTarget;
|
||||
|
||||
/*
|
||||
* the test is done after the width becomes narrower (immediately)
|
||||
* and then comes back to the same size. However, the two things
|
||||
* might happen at once.
|
||||
*/
|
||||
function arm() {
|
||||
gTarget = window.innerWidth;
|
||||
window.addEventListener("resize", got_resize, false);
|
||||
setTimeout(got_resize, 200);
|
||||
}
|
||||
|
||||
function got_resize() {
|
||||
if (window.innerWidth == gTarget) {
|
||||
gTarget = -1;
|
||||
// Remove the class="reftest-wait" from the top window
|
||||
window.top.document.documentElement.removeAttribute("class");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue