Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="http://www.w3.org/TR/css3-ui/#resize">
<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>