summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/file-selector-button-display-toggle-crash.html
blob: bc9f24ae0194fc3b59a1f0da7e8c2e13cf9eb9c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<title>Shouldn't assert when re-creating a ::file-selector-button pseudo-element after it being display: none</title>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5049">
<style>
  .tweak::file-selector-button {
    display: none;
  }
</style>
<input type="file">
<script>
  let input = document.querySelector("input");
  input.getBoundingClientRect().top;
  input.classList.add("tweak");
  input.getBoundingClientRect().top;
  input.classList.remove("tweak");
</script>