t {
  width: 100px;
  height: 100px;
  background-color: green;
}

button {
  width: 200px;
  height: 200px;
}
</style>
</head>
<body>
<div id="parent">
  <div id="wrapper">
    <button>click me</button>
  </div>
</div>

<script>
promise_test(function() {
  const parentClickedPromise = new Promise(r => {
    document.getElementById("parent").addEventListener("click", r);
  });

  document.getElementById("parent").addEventListener("mousedown", function() {
    document.getElementById("wrapper").style.display