| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <script> | 3 <script> |
| 4 // We don't care a render tree of this test. | 4 // We don't care a render tree of this test. |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsTextWithPixelResults(); | 6 testRunner.dumpAsTextWithPixelResults(); |
| 7 </script> | 7 </script> |
| 8 <style> | 8 <style> |
| 9 body { overflow: hidden; } |
| 10 |
| 9 textarea { | 11 textarea { |
| 10 color: lime; | 12 color: lime; |
| 11 text-indent: 1px; | 13 text-indent: 1px; |
| 12 zoom: 8; | 14 zoom: 8; |
| 13 } | 15 } |
| 14 | 16 |
| 15 textarea::-webkit-input-placeholder { | 17 textarea::-webkit-input-placeholder { |
| 16 text-indent: -1px; | 18 text-indent: -1px; |
| 17 font-weight: bold; | 19 font-weight: bold; |
| 18 color: red; | 20 color: red; |
| 19 } | 21 } |
| 20 </style> | 22 </style> |
| 21 <p>This test is meaningfull only if RenderTheme::shouldShowPlaceholderWhenFocuse
d() returns true.</p> | 23 <p>This test is meaningfull only if RenderTheme::shouldShowPlaceholderWhenFocuse
d() returns true.</p> |
| 22 <p>The green caret in the following text box should painted over the red placeho
lder text.</p> | 24 <p>The green caret in the following text box should painted over the red placeho
lder text.</p> |
| 23 <textarea placeholder="Placeholder"></textarea> | 25 <textarea placeholder="Placeholder"></textarea> |
| 24 <script>document.querySelector('textarea').focus();</script> | 26 <script>document.querySelector('textarea').focus();</script> |
| 25 </body> | 27 </body> |
| OLD | NEW |