Close(x) icon is not displaying for password field or text input field with obfuscated yes. I used userwork form to display close icon for text input control with below code, but same is not working for password field and obfuscated text input field.
Also, you've only targeted text type input fields, so your implementation would never take effect on a password (or other input fields for that matter) field.
However, I do not believe targeting password fields as well (e.g. input[type=password]::-ms-clear ...) will work, as browsers will handle password fields specially in their own way. I believe most will typically override this behavior anyways.