1
0
Fork 0
firefox/layout/base/tests/input-maxlength-valid-before-change.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

15 lines
403 B
HTML

<!DOCTYPE HTML>
<html>
<!-- Test: input with maxlength is valid until the user edits it, even if it's too long -->
<head>
<style>
:valid { background-color:green; }
:invalid { background-color:red; }
* { background-color:white; }
</style>
</head>
<body onload="document.documentElement.className=''">
<input id="input" maxlength="2" value="foo">
</body>
</html>