1
0
Fork 0
firefox/layout/reftests/forms/input/file/dynamic-max-width.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

34 lines
722 B
HTML

<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html class="reftest-wait"><head>
<meta charset="utf-8">
<title>CSS Test: file control with dynamic change to max-width</title>
<style type="text/css">
input { max-width: 10em; }
</style>
<script>
function tweak() {
[...document.querySelectorAll('input')].forEach(function(e) {
e.style.maxWidth = 'initial';
});
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", tweak);
</script>
</head>
<body onload="test()">
<input type=file dir=rtl>
<br>
<input type=file>
</body>
</html>