Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: LayoutTests/fast/images/content-url-canvas.html

Issue 1293023002: Fix crash when content() url is -webkit-canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/images/content-url-canvas-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/images/content-url-canvas.html
diff --git a/LayoutTests/fast/images/content-url-canvas.html b/LayoutTests/fast/images/content-url-canvas.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8b59585f309369dedf5f6371f4149ecd837fbed
--- /dev/null
+++ b/LayoutTests/fast/images/content-url-canvas.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<style>
+ img { content: -webkit-canvas(img); width: 24px; height: 24px; }
+</style>
+<img>
+<p> crbug.com/521152: Tests for crash introduced by r200510: should display a green square.</p>
+<script>
+ var ctx = document.getCSSCanvasContext("2d", "img", 24, 24);
+ ctx.fillStyle = "rgb(0,255,1)";
+ ctx.fillRect (0, 0, 24, 24);
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/images/content-url-canvas-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698