-
Notifications
You must be signed in to change notification settings - Fork 22
/
text-security.html
103 lines (95 loc) · 2.33 KB
/
text-security.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>text-security font demo</title>
<link href="output/text-security.css" rel="stylesheet" type="text/css" />
</head>
<body>
<style>
html {
font-size: 16px;
}
body {
font-family: Arial;
text-align: center;
background: #fff;
color: #111;
}
td {
text-align: center;
padding: 20px;
}
small {
font-size: 0.8em;
font-weight: normal;
color: rgb(49, 49, 49);
}
</style>
<main>
<table>
<thead>
<tr>
<th>shape</th>
<th>
text-securty font
</th>
<th>
-webkit-text-security*
</th>
<th>
password field
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
disc
</td>
<td>
<input type="text" style="font-family: text-security-disc;" value="🕵️ foo [某" />
</td>
<td>
<input type="text" style="-webkit-text-security: disc;" value="🕵️ foo [某" />
</td>
<td>
<input type="password" value="🕵️ foo [某" />
</td>
</tr>
<tr>
<td>
circle
</td>
<td>
<input type="text" style="font-family: text-security-circle;" value="🕵️ foo [某" />
</td>
<td>
<input type="text" style="-webkit-text-security: circle;" value="🕵️ foo [某" />
</td>
<td></td>
</tr>
<tr>
<td>
square
</td>
<td>
<input type="text" style="font-family: text-security-square;" value="🕵️ foo [某" />
</td>
<td>
<input type="text" style="-webkit-text-security: square;" value="🕵️ foo [某" />
</td>
<td></td>
</tr>
</tbody>
</table>
<div style="text-align: left; margin: 4rem;">
<small>
* The non-standard
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-security">-webkit-text-security</a>
CSS property only works in WebKit-based browsers, like Chrome. Safari only seems to support the disc shape.
</small>
</div>
</main>
</body>
</html>