Re: [csswg-drafts] [css-pseudo-4] Add a highlight pseudo-element for find-in-page or scroll-to-text (#5233)

One possible concern would be a developer setting those colors to something with no contrast to the other text on the page, but I'm not sure if that is any worse than other things the developers could do to fight with the user or make mistakes regarding contrast.

If that is a significant concern, we could add normative language to require a certain amount of contrast with the background of the text, and if there isn't then allow UAs to ignore the color.

-- 
GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5233#issuecomment-645674359 using your GitHub account

Received on Wednesday, 17 June 2020 23:15:45 UTC