mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 50d6ee076e94273080d9f3b69be0bf4eeae156d3
This commit is contained in:
parent
3b9055510a
commit
280c87822d
331 changed files with 4209 additions and 866 deletions
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<title>disabled works properly for number inputs</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/#enabling-and-disabling-form-controls:-the-disabled-attribute">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1461706">
|
||||
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<input type="number" disabled>
|
||||
<input type="number" disabled style="-moz-appearance: textfield; -webkit-appearance: textfield">
|
||||
<script>
|
||||
test(function() {
|
||||
for (const element of Array.from(document.querySelectorAll('input'))) {
|
||||
element.focus();
|
||||
assert_true(element.disabled);
|
||||
assert_equals(document.activeElement, document.body);
|
||||
}
|
||||
}, "disabled works on number input regardless of appearance");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue