DEV Community

Discussion on: Possibly the Most Useful CSS Trick

abhinav1217 profile image
Abhinav Kulshreshtha

This is more practical implementation of the example in the article. I had used javascript for this effect in past projects. Do you have codepen for this?

Thread Thread
xtrp profile image
Gabriel Romualdo Author • Edited on

Yes, I do!, see line 96 of CSS to see the :not(:placeholder-shown) trick in action. As I said, this is part of a password-manager desktop application I am currently building, which is open sourced on GitHub as well.

— Gabriel