::selection
attributes back to browser defaults? I have a problem when used vuematerial, that sets some custom colors.
]]>It’s a Chrome and Safari thing. Make the color just slightly transparent, like this rgba(255,255,255,0.99)
and it (almost) appears as white. And it works with every color, not just white ;-)
::selection{ background-color: white }
does not create a perfectly white background ? Instead, it shows a grey background (#989898)
It seems like the perfect white color (#fff) is forbidden. My guess is that it’s to make sure that the selection is visible enough : most pages having a white background, a selection background set to the same color would not contrast at all.
I asked this on Stack Overflow and it didn’t raise much interest so far http://stackoverflow.com/questions/32820767/css-text-selection-styling-can-not-make-background-white
Do you have any idea ? Do you experience the same in Webkit browsers ?
]]>Sorry. There is no way.
]]>Nice for using
]]>But when scoll down to “What’s your take on managing styles entirely in JavaScript?” div this will remove!
]]>I know it says that this isn’t going to work for IOS, but is there a way to get a workaround for IOS? I’ve got things working for all other browsers, but we also need this for IOS.
With kind regards,
Kay
I am having trouble with anchors. I want all my selected areas to be red so I add a simple ::selection{ background-color: red }
and everything works fine, but when I add links to my document there is always a line bellow the tag that still gets the default color.
I see no reason to post code here since it happens everywhere. Thanks.
]]>