summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom-view/offsetParent-block-in-inline.html
blob: f2bbb55f36d084b2cdf3e6fad23cd16c00369252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#extensions-to-the-htmlelement-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<span id="parent" style="position:relative;">
    <div id="target"></div>
</span>
<script>
test(function() {
  const target = document.getElementById('target');
  const parent = document.getElementById('parent');
  assert_equals(target.offsetParent, parent);
});
</script>