W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

Re: [csswg-drafts] [css-ui-3] caret-color animations, 'auto' and 'currentColor'

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 12 Dec 2016 07:23:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-266359529-1481527403-sysbot+gh@w3.org>
>> I guess the only difference between currentColor and auto would be 
this part of the spec:
> User agents may automatically adjust the color of caret to ensure 
good visibility and contrast with the surrounding content, possibly 
based on the currentColor, background, shadows, etc.

Right, that's what it's for. It ought to be pretty cheap to implement 
if you don't want to do anything special, and it opens up the door for
 smarter behavior or aligning with whatever unusual thing an OS might 
have as a native behavior.

It also enables some extra flexibility when/if we later add more 
properties that relate to the caret. For instance, level4 proposes 
`caret-shape: block`](https://drafts.csswg.org/css-ui-4/#caret-shape),
 and in that case [it might be good for the `auto` `caret-color` to be
 neither currentColor nor the background color, but something that 
contrasts with 

Anyway, I don't think this is essential, but it seems nice to have a 
low cost.

GitHub Notification of comment by frivoal
Please view or discuss this issue at 
using your GitHub account
Received on Monday, 12 December 2016 07:23:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:06 UTC