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