css to remove text shadow on select / highlight text (mozilla)

后端 未结 2 1153
臣服心动
臣服心动 2021-01-17 10:53

I\'m using text shadows for most text site wide, but when you highlight / select the text - the text looks fuzzy. So in order to remove the text shadow I use this css from h

2条回答
  •  清酒与你
    2021-01-17 11:10

    The following is documented on Mozilla Developer Network:

    Though this pseudo-element was in drafts of CSS Selectors Level 3, it was removed during the Candidate Recommendation phase, as it appeared that its behavior was under-specified, especially with nested elements, and interoperability wasn't achieved (based on discussion in the W3C Style mailing list).

    The ::selection pseudo-element currently isn't in any CSS module on the standard track. It should not be used in production environments.

提交回复
热议问题