mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Update webplatform tests for multiline placeholder.
Note: MANIFEST updated per the normal procedure using `mach wpt-manifest-update` lint.whitelist updated to reflect intentional use of CR in these tests. Resolves #977
This commit is contained in:
parent
7ae2bd83b7
commit
108510a777
11 changed files with 284 additions and 2 deletions
|
|
@ -0,0 +1 @@
|
|||
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>textarea multiline placeholder (CR)</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-placeholder">
<meta name="assert" content="textarea element's placeholder preserves newlines (CR)">
<link rel="match" href="/html/form-elements/the-textarea-element/multiline-placeholder-ref.html">
<link rel="stylesheet" href="support/placeholder.css">
<textarea rows="5" placeholder="this is
a multiline
placeholder"></textarea>
<textarea rows="5" placeholder="this is
a multiline

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

placeholder"></textarea>
|
||||
<textarea rows="5" id="dynamic"></textarea>
|
||||
<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,15 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="support/placeholder.css">
|
||||
<textarea rows="5" class="placeholder">this is
|
||||
a multiline
|
||||
|
||||
placeholder</textarea>
|
||||
<textarea rows="5" class="placeholder">this is
|
||||
a multiline
|
||||
|
||||
placeholder</textarea>
|
||||
<textarea rows="5" class="placeholder">this is
|
||||
a multiline
|
||||
|
||||
placeholder</textarea>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>textarea multiline placeholder</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/form-elements.html#attr-textarea-placeholder">
|
||||
<meta name="assert" content="textarea element's placeholder preserves newlines">
|
||||
<link rel="match" href="/html/form-elements/the-textarea-element/multiline-placeholder-ref.html">
|
||||
<link rel="stylesheet" href="support/placeholder.css">
|
||||
<textarea rows="5" placeholder="this is
|
||||
a multiline
|
||||
|
||||
placeholder"></textarea>
|
||||
<textarea rows="5" placeholder="this is
a multiline

placeholder"></textarea>
|
||||
<textarea rows="5" id="dynamic"></textarea>
|
||||
<script>
|
||||
document.querySelector("#dynamic")
|
||||
.setAttribute("placeholder", "this is\na multiline\n\nplaceholder");
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
</script>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
textarea.placeholder,
|
||||
textarea::placeholder {
|
||||
/* revert browser styling of the placeholder */
|
||||
color: GrayText; /* blink/webkit use colour */
|
||||
opacity: 1.0; /* gecko uses opacity */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue