Closed Bug 319849 Opened 19 years ago Closed 19 years ago

:before and :after pseudo-elements do not display on img and br elements

Categories

(Firefox :: General, defect)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 245633

People

(Reporter: mozbugzilla2021, Unassigned)

Details

Attachments

(1 file)

40.72 KB, application/xhtml+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

:before and :after pseudo-elements do not display on <img /> and <br /> elements. All other elements that I have tried properly display :before and :after content.

Reproducible: Always

Steps to Reproduce:
1. Load a page with a :before or :after pseudo-element on an <img> or <br /> tag.
Actual Results:  
No content was added before or after the affected tag.

Expected Results:  
:before and :after content should have been added.

See the testcase for more information.
Attached file Testcase

*** This bug has been marked as a duplicate of 245633 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: