RESOLVED INVALID 87452
[CSS + Canvas] content:-webkit-canvas(test) in <img> element is not working properly
https://bugs.webkit.org/show_bug.cgi?id=87452
Summary [CSS + Canvas] content:-webkit-canvas(test) in <img> element is not working p...
Alexei
Reported 2012-05-24 20:07:59 PDT
Created attachment 143955 [details] text example There is a longstanding problem with the "CSS" and "Canvas" at the same time. If the function "-webkit-canvas ()" is specified in the property "content" in <img> element, then the original image size is set to zero like a "DIV" elements. I beg to correct the work "-webkit-canvas ()" in the property "content". For ideas, the size should be changed immediately if JS was called "document.getCSSCanvasContext ()".
Attachments
text example (97.82 KB, application/octet-stream)
2012-05-24 20:07 PDT, Alexei
no flags
Alexei
Comment 1 2012-05-24 20:09:58 PDT
*** Bug 86329 has been marked as a duplicate of this bug. ***
Alexey Proskuryakov
Comment 2 2012-05-25 11:06:18 PDT
You have filed multiple bugs on this issue. Could you please explain why it is important? That would help prioritize it much better than unsubstantiated requests do.
Dean Jackson
Comment 3 2012-05-25 12:20:57 PDT
I'm also confused. It looks like you're saying the other bugs you filed are duplicates.
Dean Jackson
Comment 4 2012-05-25 18:57:16 PDT
Alexei, could you file one bug and stop changing the others (duplicating, changing priority, etc)?
Alexei
Comment 5 2012-05-25 23:54:20 PDT
Messages does not editable. I created many bugs with one reason.
Alexei
Comment 6 2012-05-25 23:54:44 PDT
This is FINAL BUG!
Dean Jackson
Comment 7 2012-05-29 17:27:28 PDT
OK. I think this is a bug, but also slightly unspecified behaviour. It's not clear what the size of the CSS content is, nor whether it should be resized if it changes. BTW - it's probably our fault that this is unspecified, since we invented webkit-canvas.
Radar WebKit Bug Importer
Comment 8 2012-05-29 17:27:59 PDT
Alexei
Comment 9 2012-05-30 02:29:32 PDT
Size must be defined from JS code: <style> img { content:-webkit-canvas(test); } </style> <script> var ctx = document.getCSSCanvasContext("2d","test",150,150); </script> Original size must be 150x150 like: <style> img { content: url(icon.png); } </style>
Alexei
Comment 10 2012-06-08 23:37:27 PDT
Note You need to log in before you can comment on or make changes to this bug.