blob: 5064bb99ca19dfda8d5448179bc8cf7c4e0d3939 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" href="mailto:masonf@chromium.org">
<link rel=help href="https://open-ui.org/components/popup.research.explainer">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<button id=b1>This is an anchor button</button>
<div popover id=p1 anchor=b1>This is a popover</div>
<button id=b2 popover=p1>This button invokes the popover but isn't an anchor</button>
<script>
test(function() {
assert_equals(p1.anchor,b1);
}, "popover anchor IDL property returns the anchor element");
</script>
|