It can only happen if you allow untrusted CSS on your website, which would then allow a third-party to get the password. You can do the same with JS as well. The way you avoid this shit is by avoiding people you don't know putting code that you haven't checked on your website.
0
u/shevegen Feb 21 '18
Wow - and here I thought CSS is much cooler than JavaScript.
Now I have to worry about keyloggers stealing even more information from people ... :(