mirror of
https://github.com/RGBCube/serenity
synced 2025-07-17 09:07:38 +00:00

This matches if the element has a placeholder, and that placeholder is currently visible. This applies to `<input>` and `<textarea>` elements, but our `<textarea>` is very limited so does not support placeholders.
9 lines
230 B
HTML
9 lines
230 B
HTML
<style>
|
|
:placeholder-shown {
|
|
background-color: yellow;
|
|
}
|
|
</style>
|
|
<input type="text" placeholder="hi">
|
|
<input type="text" placeholder="hi" value="I like turtles">
|
|
<input type="text">
|
|
<input type="text" value="I like turtles">
|