Open Bug 714507 Opened 13 years ago Updated 2 years ago

[CSS3] content:element() in any element or HTML5 Canvas in IMG element

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: golod95, Unassigned)

References

(Depends on 2 open bugs)

Details

(Keywords: dev-doc-needed)

Attachments

(2 files)

Attached file moz.html
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7

Steps to reproduce:

Please - add support content of this HTML File. I known, that this is unreal, but you must do...
Attached image addition file
Please - disable source code in bugzilla... This source code is long.
Note that you'd need to use document.cssElementMap instead of document.CSSElementMap.
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → style-system
So this is asking for us to implement the CSS3 Generated Content stuff that's not actually going to end up in a spec in its current form, right?

I don't think we should really worry about it until the spec is something resembling stable.
Im pretty sure this relates to the same fix I'm thinking of which is:

<img class="logo" />

.logo{content: url("blank.gif");}

Currently in firefox the above example doesn't work. Class="x" is alot cleaner than saying <img src="blank.gif">.  It works in IE11, chrome, but not firefox.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: