-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow customizing highlight style #143
Comments
To allow customisation, perhaps some kind of remix of the CSS But I’d think that ideally website publishers should not need to customise their site for accessibility: a user agent could just adjust the highlight colour to ensure sufficient contrast; just like some browsers (at least Firefox, but not Chromium I now discover) invert the colours of the user’s selection on dark-ish backgrounds. |
Styling the highlight color is under discussion in w3c/csswg-drafts#5233 |
Regarding accessibility requirements, the browser should provide good defaults. Chrome's reusing the indicating infrastructure that exists around Find-In-Page. I think Chrome could be improved in this case (e.g. crbug/39077. The highlight for text-fragments specifically is currently being debated but this should be implementation defined behavior (certainly warrants some discussion in spec though). |
See also issue w3c/csswg-drafts#5522 which is specifically for text fragments. |
Update: This has been implemented and is proposed for shipping in blink-dev |
The |
It would be great to be able to style the highlight as the bright yellow may not meet accessibility requirements for certain pages.
See also: #142
The text was updated successfully, but these errors were encountered: