Skip to content

Commit d044c1e

Browse files
committed
[css-ui-3] caret-color applies to all elements
Closes #725
1 parent 3fd80ec commit d044c1e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

css-ui/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ boxes are generated for it and its cursor is used for the canvas.
12451245
Name: caret-color
12461246
Value: auto | <<color>>
12471247
Initial: auto
1248-
Applies to: elements that accept input
1248+
Applies to: all elements
12491249
Inherited: yes
12501250
Percentages: N/A
12511251
Media: interactive
@@ -1268,6 +1268,16 @@ The caret is a visible indicator of the insertion point in an element where text
12681268

12691269
Note: caret shape and blinking is outside the scope of this feature and thus unspecified.
12701270

1271+
Note: UAs might have additional things that count as “carets”.
1272+
For example, some UAs can show a “navigation caret”,
1273+
which acts similarly to an insertion caret
1274+
but can be moved around in non-editable text,
1275+
and is functionally a caret.
1276+
On the other hand, the cursor image shown
1277+
when hovering over text when the 'cursor' property is ''cursor/auto'',
1278+
or when hovering over an element where the 'cursor' property is ''cursor/text'' or ''cursor/vertical-text'',
1279+
though it sometimes resembles a caret, is not a caret (it's a cursor).
1280+
12711281
<div class="example">
12721282
Example: a textarea with
12731283
<code class="lang-css">caret-color:#00aacc;</code>
@@ -1514,6 +1524,8 @@ This appendix describes changes from the
15141524
replaced elements representing images or videos
15151525
and to iframes,
15161526
for compatibility with level 4.
1527+
<li>Make the 'caret-color' property apply to all elements,
1528+
so that it can also influence things like the navigation caret.
15171529
</ul>
15181530

15191531
<h2 class="no-num" id="security-privacy-considerations">Appendix C. Considerations for Security and Privacy</h2>

0 commit comments

Comments
 (0)