Open naher94 opened 2 years ago
Doesn't seem to work in Safari due to the way Safari blends or overlays the selection object with the text. Note the selection color is the same as the text color here but its still somewhat legible and not redacted
Found the solution here https://stackoverflow.com/questions/14970891/css-selection-color-behaving-strangely-on-chrome
since the browser is trying to mess with the opacity you can override it with background: rgba(0,0,0,.99);
by setting the opacity.
Looks like the right color is background: rgba(27, 37, 51, 0.99);
for visual collision of the next
Might have some A11Y downsides
sorted out the A11Y issues with this demo using transparent
highlight color: https://codepen.io/naher94/pen/abxdQEo?editors=1100
https://twitter.com/xdesro/status/1529538994350002179?s=21&t=y5UvUWzzs3VM5QuBcCnWtQ
Look at the content on the about page to create this Easter egg