Discussion:
[firebug] CSS Tab Source Edit
bsmither
9 years ago
Permalink
Firebug: 2.0.15, Firefox: 44.02

I have observed on the CSS Panel, having chosen CSS file to inspect, if
that file is malformed, the panel displays:
"There are no rules. You can create a rule."

If I then enable "Source Edit", there is simply an empty line 1.

However, the file is not empty!

On the Net Panel, I expand the GET request for that CSS file and look on
the Response tab.

The malformation is where the first line starts a block comment, and which
is never terminated correctly:
/* You can add custom rules here *
.custom_1 { color: green; }

I would expect to see the above code in the CSS Panel, Source Edit enabled,
but that is not the case.
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/202f0dd3-3d27-4a6c-8d40-3cdebf87f600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Erik Krause
9 years ago
Permalink
Post by bsmither
/* You can add custom rules here *
.custom_1 { color: green; }
I would expect to see the above code in the CSS Panel, Source Edit enabled,
but that is not the case.
Firebug doesn't read and see the actual CSS file but the CSS like
interpreted by firefox. In your case there is a comment only, and
comments are stripped by firefox. Also see https://getfirebug.com/faq ->
CSS panel
--
Erik Krause
http://www.erik-krause.de
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/572A67D4.5050001%40gmx.de.
For more options, visit https://groups.google.com/d/optout.
bsmither
9 years ago
Permalink
"Also see https://getfirebug.com/faq ->CSS panel"

A link on that FAQ points to: Source Edit Mode:
https://getfirebug.com/wiki/index.php/CSS_Panel#Source_Edit

So, while your assertion is valid for any other view of the CSS, I maintain
my observation for Source Edit Mode. (However, I have observed this from
only one source while I was troubleshooting an issue. I have not attempted
to make an intentional, repeatable test case.)
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/02f5ba24-5ad8-429a-b473-f1a488808e32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sebastian Zartner
9 years ago
Permalink
It's obviously a bug in Firebug, so feel free to report it in the related
GitHub issue tracker <https://github.com/firebug/firebug/issues/new>.
Two notes, though:

1. You can at least see that the CSS is invalid within the *Console*
panel (with enabled *Show CSS Errors* option).
2. Firebug 3 will integrate into the Firefox DevTools, which don't have
that error. I.e. they show you the invalid CSS in their *Style Editor*,
which makes it unlikely to be fixed for Firebug 2.

Sebastian
Post by bsmither
"Also see https://getfirebug.com/faq ->CSS panel"
https://getfirebug.com/wiki/index.php/CSS_Panel#Source_Edit
So, while your assertion is valid for any other view of the CSS, I
maintain my observation for Source Edit Mode. (However, I have observed
this from only one source while I was troubleshooting an issue. I have not
attempted to make an intentional, repeatable test case.)
--
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+***@googlegroups.com.
To post to this group, send email to ***@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/618f2ce9-70c6-4f51-b8d2-b106375c4c1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...