<!DOCTYPE html>
<meta charset="utf-8" />
<title>Popover beforetoggle event</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel=help href="https://open-ui.org/components/popover.research.explainer">
<link rel=help href="https://html.spec.whatwg.org/multipage/popover.html">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<div popover></div>

<script>
test(() => {
  let frameCount = 0;
  requestAnimationFrame(() => {++frameCount;});