-webkit-text-security: disc; css property is not working in Firefox browser

Total
1
Shares

-webkit-text-security: disc; css property is not working in Firefox browser

Is there any alternative for same in mozilla . Please help


Solution

Updated Code:

_x000D_

_x000D_

@font-face{
  font-family: text-security-disc;
  src: url("https://raw.githubusercontent.com/noppa/text-security/master/dist/text-security-disc.woff");
}

input {
  font-family: text-security-disc;
  -webkit-text-security: disc;
}

_x000D_

<input type="text">

_x000D_

_x000D_

_x000D_



Note:- If you dont want password as input type,
the only way I could think of is to use ‘disc’ like font, for the input. I don’t recommend this, since anyone can copy-paste the password to text editor and see it. If you want to proceed, here is link to a github repository. (I haven’t tested it, so I am not sure)

Leave a Reply

Your email address will not be published. Required fields are marked *