bernk
bernk

Reputation: 1165

Why is Chrome DevTools not showing me the stylesheet rules belong to?

This is only happening on the site I am working on. If I inspect any other site, I see the stylesheet a rule is coming from to the right of the rule. As you can see in the screenshot below this is not the case for me here. I am using SCSS and compiling to CSS with CodeKit, but the end result is a flat CSS file so I'm not sure if that should have any impact.

enter image description here

Upvotes: 0

Views: 167

Answers (2)

bernk
bernk

Reputation: 1165

In my case the issue was caused by prefixfree.js.

Upvotes: 0

Alexander Pavlov
Alexander Pavlov

Reputation: 32286

How is the stylesheet attached to your page? If it is loaded via an XHR and then set as a textContent of a new <style> element inserted into your <head> (without the //#sourceURL comment), then this result is expected. Otherwise, please provide more info or (ideally), a publicly accessible URL where this issue occurs.

Upvotes: 1

Related Questions