Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

display: none !important injected in <img ng-src...>

I am trying to debug my AngularJS app where display:none is injected in tag as shown below:

This is how the img tag should be displayed:

  <img ng-src="{{clientImage}}" style="margin: 0 0 0 5px;" />

This is what I get:

  <img ng-src="{{clientImage}}" style="margin: 0 0 0 5px; display: none !important;" />

Can someone please help me by suggesting how I can trace how the (display: none !important;) is injected? Also any thoughts on what could possibly be injecting this in my img tag?

Notes: - This problem happens only on some browsers but not all browsers, actually I've tried reproducing the bug on same browser version but on two different machines but failed. - I am using Chrome latest version for testing

like image 595
MChan Avatar asked Nov 30 '22 00:11

MChan


2 Answers

Turn off ad block.

I had an image named 'Advert.png', spent too much time to realize ad block was blocking it ¬¬.

like image 126
A stupid guy Avatar answered Dec 01 '22 12:12

A stupid guy


This issue comes when adblocker extension is used in browsers when you'll pause you'll be able to see the images and this inline CSS will not be shown.

like image 42
user12557717 Avatar answered Dec 01 '22 14:12

user12557717