3 ms·
Off-topic, but how and why does attempting to directly select text from this post not work (it just drags the whole content as if it were an image)? It appears
by MauranKilom 5y ago
Off-topic, but how and why does attempting to directly select text from this post not work (it just drags the whole content as if it were an image)? It appears to be normal HTML behind the scenes, and if you start a drag e.g. between paragraphs it selects text normally (well, almost invisibly, but that's just styling).
FF 91.0.1 if that matters...
- wizzwizz4 5y agoSelection is styled the same colour as normal text, looks like.
- hansvm 5y agoNice catch! FWIW on my machine the background is the same but the font changes colors slightly when selected.
- chrismorgan 5y ago.inner_column ::selection { color: #282c2e; background: #c8e0e8; } General advice for web developers: don’t override selection colours for aesthetic reasons, it tends to harm accessibility: https://developer.mozilla.org/en-US/docs/Web/CSS/::selection#accessibility_concerns https://developer.mozilla.org/en-US/docs/Web/CSS/::selection... ::selection is more or less one of the mistakes of the past that I wish browser makers would agree to kill off. I wish Firefox had at least an about:config switch to disable it.