On Monday, December 19, 2016 at 1:19:13 AM UTC+1, San wrote: > > I'm having some minor problems tracking down the source of CSS rules using > the Mozilla DevTools. > > I click to inspect a section in the rendered page. The Inspector panel's > Rules tab shows me the correct selector, but next to that it says > "inline:13". > > This is a little confusing because there are no inline styles. Then I > discover that by "inline" it just means a style section in the HTML > document's head. So anything that isn't in a separate stylesheet is > "inline" now? Not the way I use that term... >
Yes, inline here means "embedded in the HTML code", i.e. a style sheet surrounded by <style> tags. A worse problem is the number "13". I look around and find the CSS rule on > line 35 of my document. So why "13"? > > It turns out that the DevTools uses its own line-numbering system -- if > you ask to see CSS, it starts numbering from the beginning of the CSS > section, not the top of the document. It treats the first line of the > head's CSS section is "line 1", and so on. But that doesn't help me find > anything, because actually (according to my text editor) that's line 35 of > my document, not line 1. > You're right. The numbering is relative to the beginning of each style sheet. I.e. 13 is the 13th line after the <style> tag. > Is this a bug, or just the DevTools being stupid? I don't remember having > a problem like this in Firebug... > Well, it's a difference to Firebug. I've filed that as bug 1324385 <https://bugzilla.mozilla.org/show_bug.cgi?id=1324385>. Sebastian PS: If your question is only related to the Firefox DevTools, you should better ask in their communication channels <https://developer.mozilla.org/en-US/docs/Tools#Join_the_Developer_tools_community>, not the Firebug discussion group. In this case it is fine, though, because it's a difference to Firebug. -- You received this message because you are subscribed to the Google Groups "Firebug" group. To unsubscribe from this group and stop receiving emails from it, send an email to firebug+unsubscr...@googlegroups.com. To post to this group, send email to firebug@googlegroups.com. Visit this group at https://groups.google.com/group/firebug. To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/1df3b882-cd2d-4c45-9c09-6a5bb35e71ab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.