summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/crashtests/fieldset-middleclick.html
blob: 39acf9eca17597838a4eec54f31d70be3f9abbb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE HTML>
<html class="test-wait">
<head>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<style>
#f {
  overflow-y: scroll;
  width: 100px;
  height: 100px;
}
</style>
</head>
<body>
<fieldset id="f">
  <p>test</p>
  <p>test</p>
  <p>test</p>
  <p>test</p>
  <p>test</p>
  <p>test</p>
</fieldset>
<script>
onload = async () => {
  const actions = new test_driver.Actions();
  const button = {button: actions.ButtonType.MIDDLE};
  await actions.
      pointerMove(50, 50).
      pointerDown(button).
      pointerUp(button).
      send();
  document.documentElement.className = "";
};
</script>
</body>
</html>