mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
7bc5949e35
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">
|