Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/css/-webkit-text-security/index.md
6524 views
---
title: "-webkit-text-security" slug: Web/CSS/-webkit-text-security page-type: css-property status: - non-standard browser-compat: css.properties.-webkit-text-security
---

{{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

-webkit-text-security: circle; -webkit-text-security: disc; -webkit-text-security: square; -webkit-text-security: none;

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

<label for="name">Name:</label> <input type="text" name="name" id="name" />

CSS

input { -webkit-text-security: square; }

Result

{{EmbedLiveSample("Obscuring_a_text_input")}}

Specifications

Not part of any standard.

Browser compatibility

{{Compat}}

See also