Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inspector won't show css on some websites

I've always used ff inspector to debug css and never had this issue before, I tried to check the css of this website https://www.duolingo.com (the issue occurs only when I'm logged in), but the inspector is not showing anything for any element on the webpage:

enter image description here

The inspector works fine on other websites though, not sure if the website developers intended to hide the css or not, but I found some strange css links seems to be using a proxy:

enter image description here

Is this some kind of new trick to hide CSS or is it a bug in firefox inspector? or is it something else?

I'm using Firefox version 45.0.1

like image 978
razz Avatar asked Apr 02 '16 18:04

razz


People also ask

How do I view CSS files in inspect element?

How can find the css file from inspector ? right click, choose inspect element and will open the styles tab on your right and u can see the classes that holds the css and as well on right top will show in which file name is that class.

How do I view CSS in Firefox inspect element?

To view user-agent styles (i.e., browser-default CSS rules), enable “Inspector > Show Browser Styles” under the developer tool settings panel.

How do you inspect rules in CSS?

# View an element's CSS Right-click the Inspect Me! text below and select Inspect. The Elements panel of DevTools opens. The Inspect Me!


Video Answer


1 Answers

I am pretty certain this is a known bug that has been fixed already. I don't have an account on this website so I can't be sure, but we've had very similar problems in the recent past.

It could be either: https://bugzilla.mozilla.org/show_bug.cgi?id=1255787 Which has been fixed in FF48 (it involved an inline stylesheet <style> which defined a sourcemap URL).

Or it could be: https://bugzilla.mozilla.org/show_bug.cgi?id=1249888 Which has been fixed in FF47 and uplifted to FF46 too (it involved an incorrect CSS sourcemap URL).

You can verify this by tested again with these versions. If it still doesn't work, please feel free to file a new bug here: https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer%20Tools%3A%20CSS%20Rules%20Inspector with steps to reproduce and possibly, pasting the errors that may be present in the browser console (ctrl+shift+J).

In any case, this isn't a wanted behavior. In the rare cases where there are indeed no css rules to be shown on a given element, then the panel shows a message like "no valid element selected" or "no css rules found", I can't remember exactly which one. If the panel is just empty, then that's most definitely a bug.

like image 97
pbrosset Avatar answered Nov 15 '22 09:11

pbrosset