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

Unified Diff: third_party/WebKit/ManualTests/animated-canvas-as-background.html

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: third_party/WebKit/ManualTests/animated-canvas-as-background.html
diff --git a/third_party/WebKit/ManualTests/animated-canvas-as-background.html b/third_party/WebKit/ManualTests/animated-canvas-as-background.html
deleted file mode 100644
index 94f177268bc7d7c3dbfc0a840999360091dfd614..0000000000000000000000000000000000000000
--- a/third_party/WebKit/ManualTests/animated-canvas-as-background.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-#container {
- width: 300px;
- height: 300px;
- background-image: -webkit-canvas(sourceCanvas);
- background-size: 100%;
- display: inline-block;
-}
-</style>
-</head>
-<body>
- <p>This test passes if two green squares are displayed below.</p>
- <div>
- <div style="display: inline-block">
- <div id="container"></div>
- </div>
- <div id="canvas-container" style="display: inline-block"></div>
- </div>
- <script>
- var ctx = document.getCSSCanvasContext('2d', 'sourceCanvas', 300, 300);
- var canvas = ctx.canvas;
-
- function asyncDraw2() {
- ctx.fillStyle = "green";
- ctx.fillRect(0, 0, 300, 300);
- }
-
- function asyncDraw1() {
- ctx.fillStyle = "red";
- ctx.fillRect(0, 0, 300, 300);
- window.webkitRequestAnimationFrame(asyncDraw2);
- }
-
- window.webkitRequestAnimationFrame(asyncDraw1);
-
- document.querySelector('#canvas-container').appendChild(canvas);
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698