Bug 605125 (3/5) - :-moz-ui-valid shouldn't apply if the element hasn't been modified. r=bz a=jst

This commit is contained in:
Mounir Lamouri
2010-11-24 00:55:22 +01:00
parent 3bf5d7ff70
commit 98139f93a3
39 changed files with 301 additions and 45 deletions

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html class='reftest-wait'>
<!-- Test: if input is valid and its value has been changed,
it should be affected by :-moz-ui-valid pseudo-class. -->
<link rel='stylesheet' type='text/css' href='style.css'>
<body onload="document.getElementById('i').value = 'foo';
document.documentElement.className = '';">
<input id='i' class='valid' pattern='foo'>
</body>
</html>