1
0
Fork 0
firefox/testing/web-platform/tests/css/cssom-view/offsetParent-block-in-inline.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

14 lines
499 B
HTML

<!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>