'How Do You Fix the Darkened Text Selection Color in Safari? - CSS
I have been using the following CSS code on my website to change the color of selected text, and it seems to work on every browser except Safari. Please let me know what should be added as the Safari Browser seems to darken whatever color I choose, unlike other browsers:
<style>
::selection {
background-color: #003200;
color: #fff8dc;
}
Solution 1:[1]
this issue described here
For now you can make your background-color 99% opacity
::selection {
background-color: rgba(0, 50, 0, 0.99);
color: #fff8dc;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Duba Duba |
