<input id="input"> | |
<script> | |
// Make sure that the placeholder is not in visible mode when the suggested value | |
// is set to empty after being set to a non empty value. | |
internals.setSuggestedValue(input, 'Springfield'); | |
internals.setSuggestedValue(input, ''); | |
</script> | |
<style> | |
:placeholder-shown { | |
background-color: red; | |
} | |
</style> |