11cb0ef41Sopenharmony_ci<!DOCTYPE html>
21cb0ef41Sopenharmony_ci<meta charset="utf-8">
31cb0ef41Sopenharmony_ci<link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
41cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script>
51cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script>
61cb0ef41Sopenharmony_ci<body>
71cb0ef41Sopenharmony_ci<script>
81cb0ef41Sopenharmony_citest(t => {
91cb0ef41Sopenharmony_ci  const element = document.createElement('div');
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci  element.addEventListener('click', () => {
121cb0ef41Sopenharmony_ci    event.stopPropagation();
131cb0ef41Sopenharmony_ci  }, { capture: true });
141cb0ef41Sopenharmony_ci
151cb0ef41Sopenharmony_ci  element.addEventListener('click',
161cb0ef41Sopenharmony_ci    t.unreached_func('stopPropagation in the capture handler should have canceled this bubble handler.'));
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_ci  element.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true }));
191cb0ef41Sopenharmony_ci});
201cb0ef41Sopenharmony_ci</script>
21