23 lines
524 B
HTML
23 lines
524 B
HTML
<!DOCTYPE html>
|
|
<body>
|
|
<style>
|
|
textarea {
|
|
color: lime;
|
|
text-indent: 1px;
|
|
zoom: 8;
|
|
}
|
|
|
|
textarea::placeholder {
|
|
text-indent: -1px;
|
|
font-weight: bold;
|
|
color: red;
|
|
}
|
|
</style>
|
|
<p>This test is meaningfull only if RenderTheme::shouldShowPlaceholderWhenFocused() returns true.</p>
|
|
<p>The green caret in the following text box should painted over the red placeholder text.</p>
|
|
<textarea autofocus></textarea>
|
|
<script>
|
|
document.getElementsByTagName('textarea')[0].placeholder = 'Placeholder';
|
|
</script>
|
|
</body>
|