summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-anchoring/vertical-rl-viewport-size-change-001.html
blob: 0e58a1e63b10d68e0aae1ff0ba6ec0c7b1f726e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1124195">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>
  #iframe {
      display: block;
      border: none;
      width: 300px;
      height: 100px;
  }
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<iframe id="iframe" src="support/flexbox-scrolling-vertical-rl.html"></iframe>
<script>
  onload = function() {
      document.body.offsetTop;
      iframe.style.width = "100px";
  }
</script>