| Index: third_party/WebKit/LayoutTests/css3/flexbox/canvas-dynamic-change.html
|
| diff --git a/third_party/WebKit/LayoutTests/css3/flexbox/canvas-dynamic-change.html b/third_party/WebKit/LayoutTests/css3/flexbox/canvas-dynamic-change.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c6f75db6dc871f17d459ce6a5260444955bcd8e2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/css3/flexbox/canvas-dynamic-change.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<link href="resources/flexbox.css" rel="stylesheet">
|
| +<style>
|
| +.red {
|
| + height: 400px;
|
| + background: red;
|
| +}
|
| +canvas {
|
| + background: green;
|
| +}
|
| +</style>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../../resources/check-layout-th.js"></script>
|
| +<div id=log></div>
|
| +
|
| +<div class="red">
|
| + <div class="flexbox column">
|
| + <canvas id="canvas" data-expected-height="400"></canvas>
|
| + </div>
|
| +</div>
|
| +
|
| +<script>
|
| +var canvas = document.getElementById('canvas');
|
| +
|
| +requestAnimationFrame(function() {
|
| + canvas.height = 400;
|
| + checkLayout('.flexbox');
|
| +});
|
| +
|
| +</script>
|
|
|