css - Preventing high-contrast mode in Edge from adding background to text -




i'm working adjust components function , in high-contrast mode. edge seems adding black background under text ie11 not add. can't seem find way target background in css, or other way normalize behavior between 2 browsers.

for example, let's have following:

<div class="selectedtext">   text! </div> 

and let's assigned background-color: cyan; , color: black; .selectedtext div.

in scenario, ie11 renders expected div , text having assigned colors. however, in edge div background , text given right colors, text gets black background drawn behind it, making unreadable black on black text.

the following image illustrates problem occurring in context of menu items with same markup described above.

enter image description here

is there way disable or target background edge adds?

found answer eventually. setting -ms-high-contrast-adjust: none; on parent can disable backgrounds edge puts behind text.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -