Path: blob/main/files/en-us/web/css/-webkit-text-security/index.md
6524 views
------{{CSSRef}} {{ Non-standard_header() }}
-webkit-text-security is a non-standard CSS property that obfuscates characters in a {{HtmlElement("form")}} field (such as {{HtmlElement("input")}} or {{HtmlElement("textarea")}}) by replacing them with a shape. It only affects fields that are not of type=password.
Syntax
Formal definition
{{CSSInfo}}
Formal syntax
{{CSSSyntax}}
Examples
Obscuring a text input
Try typing in the field below. If your browser supports this property, the characters should be visually replaced with squares.
HTML
CSS
Result
{{EmbedLiveSample("Obscuring_a_text_input")}}
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}