You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-ui-4/Overview.bs
+28-43Lines changed: 28 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -1127,13 +1127,12 @@ Coloring the Insertion Caret: the 'caret-color' property</h4>
1127
1127
</div>
1128
1128
1129
1129
1130
-
<!--
1131
1130
<h4 id="caret-animation">
1132
1131
Animation of the insertion caret: 'caret-animation'</h4>
1133
1132
1134
1133
<pre class='propdef'>
1135
1134
Name: caret-animation
1136
-
Value: auto | blink | none | fade
1135
+
Value: auto | manual
1137
1136
Initial: auto
1138
1137
Applies to: elements that accept input
1139
1138
Inherited: yes
@@ -1145,9 +1144,7 @@ Animation of the insertion caret: 'caret-animation'</h4>
1145
1144
On most platforms and in most UAs,
1146
1145
the text insertion caret blinks.
1147
1146
This property allows the author
1148
-
to control the speed at which it blinks,
1149
-
or to turn off blinking entirely.
1150
-
1147
+
to take control over the way the caret is animated.
1151
1148
1152
1149
<dl dfn-type=value dfn-for=caret-animation>
1153
1150
<dt><dfn>auto</dfn>
@@ -1157,43 +1154,35 @@ Animation of the insertion caret: 'caret-animation'</h4>
1157
1154
and may be adjusted based on context.
1158
1155
1159
1156
Note: This is typically rendered as a blinking caret.
1157
+
Fading in and out instead of blinking is a variant that appears in some environments.
1160
1158
1161
-
<dt><dfn>blink</dfn>
1162
-
<dd>
1163
-
The UA must display a blinking caret.
1164
-
For accessibility reasons, and based on user preferences,
1165
-
the UA may display a non-animated caret instead.
1166
-
1167
-
<dt><dfn>none</dfn>
1159
+
<dt><dfn>manual</dfn>
1168
1160
<dd>
1169
1161
The UA must not animate the caret.
1170
1162
1171
1163
Note: This is only about UA driven animations of the caret.
1172
-
If CSS animations are used to animate the caret color,
1173
-
these should still apply normally.
1174
-
1175
-
<dt><dfn>fade</dfn>
1176
-
<dd>
1177
-
The UA must display a caret repeatedly fading in and out,
1178
-
similarly to ''caret-animation/blink'' except it appears and
1179
-
disappears progressively rather than suddenly.
1180
-
For accessibility reasons, and based on user preferences,
1181
-
the UA may display a non-animated caret instead.
1164
+
When CSS animations are used to animate the caret color,
1165
+
they apply normally.
1182
1166
</dl>
1183
1167
1184
-
Issue: Do we need the accessibility escape hatch on blink and fade?
1185
-
Would it be enough instead to expect the UI to put
1186
-
<code>caret-animation:fixed !important</code> in the
1187
-
user stylesheet when it wants to prevent the caret
1188
-
from blinking?
1189
-
1190
-
The UA determines the speed at which the cursor blinks or fades.
1168
+
The UA determines the speed at which the cursor animates (blinks, fades…).
1191
1169
It should follow platform conventions and settings.
1192
1170
1193
-
Note: It is recommended to stop the caret from blinking or fading
1194
-
using ''caret-animation: none''
1171
+
Note: It is recommended for authors to stop the caret from blinking or fading
1172
+
using ''caret-animation: manual''
1195
1173
when applying custom animations using [[CSS3-ANIMATIONS]],
1196
-
to prevent the blinking or fading and the CSS animation to interfere.
1174
+
to prevent the UA's animation and the CSS animation to interfere.
1175
+
1176
+
<div class=advisement>
1177
+
If a user agent is unwilling to yield control of caret animmations
1178
+
to page authors and would not honor ''caret-animation: manual'',
1179
+
it must not implement the property at all.
1180
+
1181
+
Note:
1182
+
This enables authors to use <code highlight="css">@supports (caret-animation: manual) { … }</code>
1183
+
to gate code that would depend on this functionality.
1184
+
See [[CSS-CONDITIONAL-3]].
1185
+
</div>
1197
1186
1198
1187
Note: See <a href="https://www.w3.org/TR/WCAG20/#seizure">Guideline 2.3: Seizures: Do not design content in a way that is known to cause seizures</a>[[WCAG20]].
1199
1188
@@ -1205,10 +1194,10 @@ Animation of the insertion caret: 'caret-animation'</h4>
0 commit comments