styling ::selection
#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
so the Accessibility section on MDN says:
i did not find any easy built-in way to do this in Librewolf/Firefox so i have no idea what they mean here. of course this can be customized by users with something like Stylus which is still possible even for sites that do override the style of
::selection
this would only be a problem if selected text was indicated using text shadow or underline or something. changing the background color is used universally to indicate selected text, i don't think it really matters what color that is as long as it's different from the background color of the site and has good contrast with the text color. (and also, native apps can have different colors for selected text and i've not heard of that being a problem)
so i think it's fine to change this if you want to :3
actually, i think sites in general should change this because otherwise there's a risk of the color used to select stuff being too similar to the background color of the site, making it hard to see the selection. (this is an issue that i ran into myself recently; firefox mobile uses my phone's accent color which is rather dark and it blended in with the background of a website too much, so it was hard for me to see what text i had selected)
(also, i looked for sources other than MDN that advise against changing the style of
::selection
but i didn't find anything)