It should really be checking for `elementStyle.hasAutoCaretColor()`.
<rdar://problem/100166424>
Pull request: https://github.com/WebKit/WebKit/pull/4525
Committed 254668@main (ec1b260043e4): <https://commits.webkit.org/254668@main> Reviewed commits have been landed. Closing PR #4525 and removing active labels.