Open Bug 714507 Opened 8 years ago Updated Last year

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


(Core :: CSS Parsing and Computation, defect)

Windows 7
Not set





(Reporter: golod95, Unassigned)


(Depends on 2 open bugs)


(Keywords: dev-doc-needed)


(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.
You need to log in before you can comment on or make changes to this bug.