mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 755d18230983e9c7d894768b73fabff8bc290d91
This commit is contained in:
parent
d544c186b9
commit
fa788e624b
70 changed files with 1929 additions and 380 deletions
|
@ -0,0 +1 @@
|
|||
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>input multiline placeholder (CR)</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute">
<meta name="assert" content="input element's placeholder strips newlines (CR)">
<link rel="match" href="multiline-placeholder-ref.html">
<input placeholder="this is
a multiline
placeholder">
<input placeholder="this is
a multiline

placeholder">
<input id="dynamic">
<script>
document.querySelector("#dynamic")
.setAttribute("placeholder", "this is\ra multiline\r\rplaceholder");
document.documentElement.classList.remove("reftest-wait");
</script>
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>input multiline placeholder (CRLF)</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute">
|
||||
<meta name="assert" content="input element's placeholder strips newlines (CRLF)">
|
||||
<link rel="match" href="multiline-placeholder-ref.html">
|
||||
<input placeholder="this is
|
||||
a multiline
|
||||
|
||||
placeholder">
|
||||
<input placeholder="this is
a multiline

placeholder">
|
||||
<input id="dynamic">
|
||||
<script>
|
||||
document.querySelector("#dynamic")
|
||||
.setAttribute("placeholder", "this is\r\na multiline\r\n\r\nplaceholder");
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
</script>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<input placeholder="this isa multilineplaceholder">
|
||||
<input placeholder="this isa multilineplaceholder">
|
||||
<input placeholder="this isa multilineplaceholder">
|
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>input multiline placeholder</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/input.html#the-placeholder-attribute">
|
||||
<meta name="assert" content="input element's placeholder strips newlines">
|
||||
<link rel="match" href="multiline-placeholder-ref.html">
|
||||
<input placeholder="this is
|
||||
a multiline
|
||||
|
||||
placeholder">
|
||||
<input placeholder="this is
a multiline

placeholder">
|
||||
<input id="dynamic">
|
||||
<script>
|
||||
document.querySelector("#dynamic")
|
||||
.setAttribute("placeholder", "this is\na multiline\n\nplaceholder");
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
</script>
|
||||
</html>
|
|
@ -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