Bug 87452 - [CSS + Canvas] content:-webkit-canvas(test) in <img> element is not working properly
Summary: [CSS + Canvas] content:-webkit-canvas(test) in <img> element is not working p...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P5 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
: 86329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-24 20:07 PDT by Alexei
Modified: 2012-08-13 01:35 PDT (History)
5 users (show)

See Also:


Attachments
text example (97.82 KB, application/octet-stream)
2012-05-24 20:07 PDT, Alexei
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei 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 ()".
Comment 1 Alexei 2012-05-24 20:09:58 PDT
*** Bug 86329 has been marked as a duplicate of this bug. ***
Comment 2 Alexey Proskuryakov 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.
Comment 3 Dean Jackson 2012-05-25 12:20:57 PDT
I'm also confused. It looks like you're saying the other bugs you filed are duplicates.
Comment 4 Dean Jackson 2012-05-25 18:57:16 PDT
Alexei, could you file one bug and stop changing the others (duplicating, changing priority, etc)?
Comment 5 Alexei 2012-05-25 23:54:20 PDT
Messages does not editable. I created many bugs with one reason.
Comment 6 Alexei 2012-05-25 23:54:44 PDT
This is FINAL BUG!
Comment 7 Dean Jackson 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.
Comment 8 Radar WebKit Bug Importer 2012-05-29 17:27:59 PDT
<rdar://problem/11553297>
Comment 9 Alexei 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>
Comment 10 Alexei 2012-06-08 23:37:27 PDT
v2.0 proposal: https://bugs.webkit.org/show_bug.cgi?id=88701