fune/testing/web-platform/tests/css/css-pseudo/file-selector-button-display-toggle-crash.html
Emilio Cobos Álvarez beca047302 Bug 1682175 [wpt PR 26876] - Un -tentative some file-selector-button tests., a=testonly
Automatic update from web-platform-tests
Un -tentative file-selector-button tests. (#26876)

They're standard, see https://github.com/w3c/csswg-drafts/issues/5049.
--

wpt-commits: 81dc4e173e3db82c8fb7a2c533c646f91b385107
wpt-pr: 26876
2020-12-17 13:31:05 +00:00

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>