Selection changes color when Firefox loses focus

戏子无情 提交于 2019-12-04 09:19:53

How can I get Firefox to set the selection color in this case?

Unfortunately, there doesn't appear to be a way to do so.

Is this a bug?

Nobody (including Mozilla themselves?) can say for sure; this was never specified while ::selection was still in the CSS3 spec. I can't find any information on MDN or bug reports on bugzilla.mozilla.org on this either. but I did find this bug report, which has apparently been left unresolved since being reported in 2010.

This may be clarified in the future, e.g. if ::selection returns in UI 4.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!