| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
|
| similarity index 76%
|
| copy from third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height.html
|
| copy to third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
|
| index 1185895680efa61fabc0d05f4573624081fb1fd9..f877b54eec37336dc1d0d7f647d974f623164ddd 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-width-height-off-screen.html
|
| @@ -7,11 +7,13 @@
|
| </filter>
|
| </defs>
|
| </svg>
|
| -<canvas id="canvas" width="100" height="100"></canvas>
|
| <script>
|
| -var canvas = document.getElementById('canvas');
|
| +var canvas = document.createElement('canvas');
|
| +canvas.width = 100;
|
| +canvas.height = 100;
|
| var ctx = canvas.getContext('2d');
|
| ctx.filter = 'url(#crop)';
|
| ctx.fillStyle = '#0f0';
|
| ctx.fillRect(0, 0, 90, 90);
|
| +document.body.appendChild(canvas);
|
| </script>
|
|
|