- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Mon, 12 Dec 2016 07:23:24 +0000
- To: public-css-archive@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 both](https://drafts.csswg.org/css-ui-4/#issue-31f51a12) 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 https://github.com/w3c/csswg-drafts/issues/781#issuecomment-266359529 using your GitHub account
Received on Monday, 12 December 2016 07:23:27 UTC