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

Unified Diff: third_party/WebKit/LayoutTests/css3/flexbox/canvas-dynamic-change.html

Issue 2111623002: Canvas objects did not mark themselves for layout when they're a flex item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 6 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 | third_party/WebKit/Source/core/layout/LayoutHTMLCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutHTMLCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698