summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/position-absolute-under-non-containing-stacking-context.html
blob: 444f125767858827f220669a7088fe228626072e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://crbug.com/1273431">
<link rel="match" href="position-absolute-under-non-containing-stacking-context-ref.html">
<script src="/common/rendering-utils.js"></script>
<script src="/common/reftest-wait.js"></script>
<div id="scroller" style="width:200px; height: 200px; overflow: auto; position: relative">
  <div style="height: 0; overflow: hidden; opacity: 0.5; margin: 250px">
    <div style="width: 100px; height: 100px; position: absolute; background: green"></div>
  </div>
</div>
<script>
waitForAtLeastOneFrame().then(() => {
  scroller.scrollTo(200, 200);
  takeScreenshot();
});
</script>