Auto merge of #14539 - frewsxcv:textarea-placeholder, r=mbrubeck

Show the placeholder text for textarea elements.

Fixes https://github.com/servo/servo/issues/10552.

All this logic was taken from htmlinputelement.rs.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14539)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-12-14 12:13:06 -08:00 committed by GitHub
commit 816b2969c3
5 changed files with 80 additions and 2 deletions

View file

@ -6498,6 +6498,18 @@
"url": "/_mozilla/mozilla/table_valign_uneven_height.html"
}
],
"mozilla/textarea_placeholder.html": [
{
"path": "mozilla/textarea_placeholder.html",
"references": [
[
"/_mozilla/mozilla/textarea_placeholder_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/textarea_placeholder.html"
}
],
"mozilla/webgl/clearcolor.html": [
{
"path": "mozilla/webgl/clearcolor.html",
@ -21546,6 +21558,18 @@
"url": "/_mozilla/mozilla/table_valign_uneven_height.html"
}
],
"mozilla/textarea_placeholder.html": [
{
"path": "mozilla/textarea_placeholder.html",
"references": [
[
"/_mozilla/mozilla/textarea_placeholder_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/textarea_placeholder.html"
}
],
"mozilla/webgl/clearcolor.html": [
{
"path": "mozilla/webgl/clearcolor.html",

View file

@ -0,0 +1,11 @@
<!doctype html>
<meta charset="utf-8">
<link rel="match" href="textarea_placeholder_ref.html">
<textarea placeholder=""></textarea>
<textarea placeholder=" "></textarea>
<textarea placeholder="foobar"></textarea>
<textarea placeholder=" foo bar "></textarea>
<textarea rows=5 placeholder=" foo
bar "></textarea>
<textarea placeholder="foo bar">lorem ipsum</textarea>

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset="utf-8">
<textarea></textarea>
<textarea></textarea>
<textarea>foobar</textarea>
<textarea> foo bar </textarea>
<textarea rows=5>
foo
bar
</textarea>
<textarea>lorem ipsum</textarea>