Home > Mobile >  Browser ignoring css styles for id if the element hast additional classes
Browser ignoring css styles for id if the element hast additional classes

Time:06-14

if i am having a following html:

 <div id="myID" >...</div>

all browsers are absolutely ignoring the following css:

 #myID{style: any !important;}

because there are styles loaded for:

 #myID.xy.za{ ... }

important note: .xa.za are random classes, which alternate for every single user whyle extermal widget is loading, so i can't grep them.

Any ideas?

CodePudding user response:

I found out, that the #myID Element is within a shadow DOM, so i can't access it via my css.

  • Related