Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Custom icons for an input field? Welp, it’s not that easy for privacy reasons to add a pseudo-class here in certain cases.

What exactly are those privacy reasons? And by custom icon for input field is meant replacing the cursor with e.g. an svg?



The only thing I can imagine is if they are third-party icons? I don't understand it either.


The issue is that css doesnt allow adding pseudo elements (:before/after) to input fields, making adding icons to an input a little trickier than with other elements.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: