mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<style type="text/css">
|
|
input {
|
|
-webkit-transition: all 0.5s ease-in-out;
|
|
-moz-transition: all 0.5s ease-in-out;
|
|
transition: all 0.5s ease-in-out;
|
|
}
|
|
input:focus {
|
|
-webkit-transform: scale(1.05);
|
|
-moz-transform: scale(1.05);
|
|
transform: scale(1.05);
|
|
}
|
|
</style>
|
|
<script>
|
|
function boom() {
|
|
var i = document.querySelector("input");
|
|
i.addEventListener("transitionend", function() {
|
|
i.removeEventListener("transitionend", arguments.callee, true);
|
|
setTimeout(function() {
|
|
i.value = "test";
|
|
i.getClientRects();
|
|
setTimeout(function() {
|
|
i.value = "";
|
|
i.getClientRects();
|
|
setTimeout(function() {
|
|
i.addEventListener("transitionend", function() {
|
|
i.removeEventListener("transisionend", arguments.callee, true);
|
|
setTimeout(function() {
|
|
i.getClientRects();
|
|
document.documentElement.removeAttribute("class");
|
|
}, 0);
|
|
}, true);
|
|
i.blur();
|
|
i.getClientRects();
|
|
}, 0);
|
|
}, 0);
|
|
}, 0);
|
|
}, true);
|
|
i.focus();
|
|
i.getClientRects();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="document.querySelector('input').getClientRects(); setTimeout(boom,0)">
|
|
<input type="text" placeholder="foo">
|
|
</body>
|
|
</html>
|