mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
25
layout/base/tests/textarea-minlength-invalid-change.html
Normal file
25
layout/base/tests/textarea-minlength-invalid-change.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!-- Test: textarea with minlength is invalid if the user edits and it's too short -->
|
||||
<head>
|
||||
<style>
|
||||
:valid { background-color:green; }
|
||||
:invalid { background-color:red; }
|
||||
* { box-shadow:none; background-color:white; }
|
||||
</style>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
function runTest() {
|
||||
var textarea = document.getElementById('textarea');
|
||||
textarea.setSelectionRange(textarea.value.length, textarea.value.length)
|
||||
textarea.focus();
|
||||
synthesizeKey('o', {});
|
||||
textarea.blur(); // to hide the caret
|
||||
document.documentElement.className='';
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="runTest()">
|
||||
<textarea id="textarea" minlength="4">fo</textarea>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue