summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-ui/resize-change-margin.html
blob: a957ac931e8647958baf0d1891d3e69dd4435c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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>