CSS :before and :after are not visible in inspected elements CSS.

1,545 views
Skip to first unread message

Richard Quadling

unread,
Jul 15, 2010, 6:00:01 AM7/15/10
to fir...@googlegroups.com
Hi.

Using ...

<html>
<head>
<title>Show CSS Before and After issue</title>
<style type="text/css">
span { border: 2px solid green; }
span:before { content : 'BEFORE ['; border : 2px solid red; }
span:after { content : '] AFTER'; border : 2px solid blue; }
</style>
</head>
<body>
<span>Text</span>
</body>
</html>

In FireFox V3.6.6 and FireBug V1.6X.0a16 and V1.6X.0a17, the <span> is
rendered correctly, but I cannot find any information about
before/after in the inspected <span> tag.

The CSS tab shows the CSS (as expected), but there is nothing else.

Regards,

Richard Quadling.

Sebo

unread,
Jul 15, 2010, 5:02:32 PM7/15/10
to Firebug
There's already an issue for this:
http://code.google.com/p/fbug/issues/detail?id=537

Greetings

Sebastian

John J Barton

unread,
Sep 7, 2010, 12:14:02 PM9/7/10
to Firebug


On Jul 15, 3:00 am, Richard Quadling <rquadl...@gmail.com> wrote:
> Hi.
>
> Using ...
>
> <html>
> <head>
> <title>Show CSS Before and After issue</title>
> <style type="text/css">
> span { border: 2px solid green; }
> span:before { content : 'BEFORE ['; border : 2px solid red; }
> span:after { content : '] AFTER'; border : 2px solid blue; }
> </style>
> </head>
> <body>
> <span>Text</span>
> </body>
> </html>
>
> In FireFox V3.6.6 and FireBug V1.6X.0a16 and V1.6X.0a17, the <span> is
> rendered correctly, but I cannot find any information about
> before/after in the inspected <span> tag.

That is because the before/after content is CSS not HTML.

>
> The CSS tab shows the CSS (as expected), but there is nothing else.

What else do you expect?

jjb

>
> Regards,
>
> Richard Quadling.

John J Barton

unread,
Sep 7, 2010, 12:49:30 PM9/7/10
to Firebug
Ok I re-read the bug report: there is a firefox bug here. They don't
handle these selectors.

jjb

>
> jjb
>
>
>
> > Regards,
>
> > Richard Quadling.

Richard Quadling

unread,
Sep 7, 2010, 1:04:39 PM9/7/10
to fir...@googlegroups.com

Oh. Just posted issue with images.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

Richard Quadling

unread,
Sep 7, 2010, 1:04:01 PM9/7/10
to fir...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "Firebug" group.
> To post to this group, send email to fir...@googlegroups.com.
> To unsubscribe from this group, send email to firebug+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
>
>

OMG What a terrible email. The one I sent that is.

And I've pretty much forgotten the issue, until I compared Chrome with FF+FB.

In Chrome and IE, when looking at the <span> the Styles show the
first-letter, before and after pseudo styles.

In FF+FB, doing the same thing (looking at the <span> in the HTML tab
and seeing what the style is), the <span> style is shown, but not the
pseudo styles.

Images attached.

Richard.

ShowCSS_IE.png
ShowCSS_Chrome.png
ShowCSS_FF+FB.png
Reply all
Reply to author
Forward
0 new messages