Closed Bug 257934 Opened 21 years ago Closed 21 years ago

Generated content doesn't work with images.

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 245633

People

(Reporter: bugzilla1, Assigned: dbaron)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040902 Firefox/1.0 PR (NOT FINAL) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040902 Firefox/1.0 PR (NOT FINAL) When using generated content, either :before or :after, Mozilla won't apply it when images are involved. Originally discovered when I was trying to auto-generate captions for my images from title attributes, I have found that even plain text isn't applied. See testcase (coming up). It has a div, a span and an image. All 3 should have "Some content before:" prepended, and either 'div', 'span' or 'img' appended. Reproducible: Always Steps to Reproduce:
Attached file testcase
:before and :after do not apply to replaced elements (images). *** This bug has been marked as a duplicate of 245633 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Verified. CSS3 may end up redefining generated content such that it applies to replaced elements, but that's a ways off in the future.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: