<!DOCTYPE html> | |
<html> | |
<style> | |
[placeholder=first]::-webkit-input-placeholder { | |
color: red; | |
background-color: green; | |
} | |
[placeholder=second]::placeholder { | |
color: pink; | |
background-color: blue; | |
} | |
</style> | |
<body> | |
<p>This test verifies that ::placeholder and ::-webkit-input-placeholder are styled the same.</p> | |
<div> | |
<input placeholder=first> | |
<input placeholder=second> | |
</div> | |
</body> | |
</html> |