Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<body>
<style>
::placeholder { color: red; }
::placeholder:focus { color: green; }
</style>
<script>
window.getComputedStyle(document.body, "::placeholder").color;
</script>