Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE HTML>
<!--
Any copyright is dedicated to the Public Domain.
-->
<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>