repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
forms
/
textarea
/
textarea-placeholder-paint-order-2.html
blob
a8f981f4d029d8edaddd1f257f239b34343fa4fc
1
<!DOCTYPE
html
>
2
<body>
3
<style>
4
textarea {
5
color: lime;
6
text-indent:
1
px;
7
zoom:
8
;
8
}
9
10
textarea::-webkit-input-placeholder {
11
text-indent: -
1
px;
12
font-weight: bold;
13
color: red;
14
}
15
</style>
16
<p>
The green caret in the following text box should painted over the red placeholder text.
</p>
17
<textarea></textarea>
18
<script>
19
var
textarea
=
document
.
querySelector
(
'textarea'
);
20
textarea
.
focus
();
21
textarea
.
placeholder
=
'Placeholder'
;
22
</script>
23
</body>