Export to GitHub

fbug - issue #365

Show :after and :before properties in CSS tab


Posted on Nov 9, 2007 by Helpful Camel

When selecting a page item, Firebug should also show the corresponding :before and :after properties in the CSS tab.

Comment #1

Posted on Mar 12, 2008 by Quick Elephant

Please attach a complete test case file, thanks.

Comment #2

Posted on Mar 14, 2008 by Helpful Camel

This is the test case file, taken from SelfHTML. If you inspect the "h1", the "h2" or the "p", Firebug should show the :before and :after properties of these elements.

Attachments

Comment #3

Posted on Sep 19, 2008 by Happy Wombat

I have problems with this all the time since I use the Easy Clearing technique frequently.

Comment #4

Posted on Sep 19, 2008 by Quick Elephant

What is Easy Clearing?

Comment #5

Posted on Sep 19, 2008 by Happy Wombat

Easy Clearing is a technique for having containers contain floated children. http://www.positioniseverything.net/easyclearing.html

Comment #6

Posted on Sep 19, 2008 by Quick Elephant

See also issues involving hover Issue 1012, 598, 537, 125

Comment #7

Posted on Jan 30, 2009 by Happy Kangaroo

Another test case for you is on the "Diff from previous version" view of the "XHTML Media Types - Second Edition" Working Group Note:

http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20090116/xhtml-media-types-diff.html

This might be helpful as the embedded styles on this page insert visible content using the ":before" and ":after" pseudo classes, e.g., for inserted and deleted content.

Comment #8

Posted on Apr 25, 2009 by Quick Elephant

just changing to standard tag

Comment #9

Posted on Nov 2, 2009 by Helpful Bear

Comment deleted

Comment #10

Posted on Dec 2, 2009 by Quick Elephant

Still a bug in 1.5b5, A modified version of the test case in comment #1 is available: http://getfirebug.com/tests/issues/issue365.html

It would be good to figure out if fixing this requires Firefox work. My first effort crashed FF 3.7 however...

Comment #11

Posted on Dec 2, 2009 by Quick Rabbit

John,

What approach did you take for Comment #10?

If we do need to get Firefox support on this one, we might want to try to lobby for support for DOM utils support for lookup of all psuedo-selectors.

Comment #12

Posted on Dec 2, 2009 by Quick Elephant

I was trying to look at the rules loop in appendRules of getStyleSheetRules, but now I see that this code populates the CSS panel, not the Style side panel. The before/after rules are seen in the CSS panel. I don't remember how the Style panel gets its list.

Comment #13

Posted on Dec 9, 2009 by Quick Rabbit

(No comment was entered for this change.)

Comment #14

Posted on Jan 9, 2010 by Happy Giraffe

Also note, that when being inside the CSS panel and hovering the image url of the "h1:before" style of John's test-case in comment #10 there is no preview popup of that image shown.

Comment #15

Posted on Feb 10, 2010 by Helpful Panda

I had a similar issue where I was trying to debug phantom list item bullets with :before and the "content" attribute -- sample is located at http://www.alistapart.com/articles/taminglists/#custom-gen -- I can wget/tarball the page requirements if it's more helpful than a hyperlink. (@devs: Thanks for the great work!)

Comment #16

Posted on Apr 5, 2010 by Massive Panda

looks like this depends on DOMUtils' getCSSStyleRules. Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=185431.

Comment #17

Posted on Jun 29, 2010 by Happy Giraffe

(No comment was entered for this change.)

Comment #18

Posted on Jun 29, 2010 by Happy Giraffe

Actually this is a part of issue 537, so I'll mark this as duplicate.

Comment #19

Posted on Oct 7, 2011 by Happy Giraffe

(No comment was entered for this change.)

Comment #20

Posted on Jun 11, 2013 by Helpful Wombat

(No comment was entered for this change.)

Status: Duplicate

Labels:
Type-Enhancement Priority-Medium CSS Test-case-available 1.5 styles platform