Reverting ::selection pseudo CSS to default -


ho there, have piece of code there ::selection defined. code must stay.

::selection {background-color:red;} 

now, want revert ::selection defaul value defined user agent.

i have tried using values such initial , inherit. don't work initial's value transparent , there no inherit value.

so wondering how able achieve default selection defined user agent.

instead of setting selection value globally set specific element need. other elements have default selection. selection works 3 values: color, background, text-shadow.

https://css-tricks.com/almanac/selectors/s/selection/


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -