<!DOCTYPE html> | |
<html> | |
<style> | |
[placeholder=first]::placeholder { | |
color: red; | |
background-color: green; | |
} | |
[placeholder=second]::-webkit-input-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> |