mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
16 lines
507 B
HTML
16 lines
507 B
HTML
<!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>
|