4 ms·
No need for the JS, just change the font if the input isn't empty, right?
by lwansbrough 9y ago
No need for the JS, just change the font if the input isn't empty, right?
- maweki 9y agoyeah. The :empty() pseudoclass should do the trick.
- vilmosi 9y ago:empty is for elements with no children, not empty value.
- eadmund 9y agoYeah, but this is 2017, when we can't even display images or text on a webpage without JavaScript. Why do in a few characters of CSS what can be done in kilobytes of remotely-executed JavaScript?
- ThrustVectoring 9y agoAlternatively, couldn't you make "password" an eight-character ligature that looks like the word rather than eight discs?