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> |