Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="resize-change-margin-ref.html">
<style>body { margin: 0 }</style>
<div id="target" style="width: 100px; height: 100px; resize: both; overflow: auto; border: 1px solid blue"></div>
<script>
requestAnimationFrame(() => {
requestAnimationFrame(() => {
target.style.marginTop = "40px";
document.documentElement.classList.remove("reftest-wait");
});
});
</script>