Bug 610415 - Make :-moz-ui-invalid and :-moz-ui-valid not applying when the form element has novalidate attribute set. r+a=sicking
This commit is contained in:
11
layout/reftests/css-ui-valid/input/input-novalidate.html
Normal file
11
layout/reftests/css-ui-valid/input/input-novalidate.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!-- When the form has @novalidate, :-moz-ui-invalid doesn't apply. -->
|
||||
<link rel='stylesheet' type='text/css' href='style.css'>
|
||||
<body onload="document.getElementById('i').value = 'foo';
|
||||
document.documentElement.className = '';">
|
||||
<form novalidate>
|
||||
<input id='i' class='notvalid' required>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -40,4 +40,5 @@
|
||||
== input-radio-dyn-valid-2.html success-ref.html
|
||||
== input-radio-nogroup-required-valid.html success-ref.html
|
||||
== input-radio-nogroup-required-invalid.html success-ref.html
|
||||
== input-novalidate.html input-withtext-ref.html
|
||||
# input type='hidden' shouldn't show
|
||||
|
||||
Reference in New Issue
Block a user