2011-01-14 12:03:06 -08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<style type="text/css">
|
|
|
|
input {
|
2012-05-24 12:04:16 -07:00
|
|
|
-webkit-transition: all 200ms ease-in-out;
|
|
|
|
-moz-transition: all 200ms ease-in-out;
|
|
|
|
transition: all 200ms ease-in-out;
|
2011-01-14 12:03:06 -08:00
|
|
|
}
|
|
|
|
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);
|
2012-05-24 12:04:16 -07:00
|
|
|
i.value = "test";
|
|
|
|
i.getClientRects();
|
|
|
|
i.value = "";
|
|
|
|
i.getClientRects();
|
|
|
|
i.addEventListener("transitionend", function() {
|
|
|
|
i.removeEventListener("transitionend", arguments.callee, true);
|
2012-01-04 06:32:47 -08:00
|
|
|
i.getClientRects();
|
2012-05-24 12:04:16 -07:00
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}, true);
|
|
|
|
i.blur();
|
|
|
|
i.getClientRects();
|
2011-01-14 12:03:06 -08:00
|
|
|
}, true);
|
|
|
|
i.focus();
|
2012-01-04 06:32:47 -08:00
|
|
|
i.getClientRects();
|
2011-01-14 12:03:06 -08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
2012-05-24 12:04:16 -07:00
|
|
|
<body onload="boom()">
|
2011-01-14 12:03:06 -08:00
|
|
|
<input type="text" placeholder="foo">
|
|
|
|
</body>
|
|
|
|
</html>
|