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

Unified Diff: LayoutTests/fast/repaint/align-content-change.html

Issue 538613003: Don't always full invalidate on change of align-content, align-items and align-self. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test expectations Created 6 years, 3 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 | LayoutTests/fast/repaint/align-content-change-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/align-content-change.html
diff --git a/LayoutTests/fast/repaint/align-content-change.html b/LayoutTests/fast/repaint/align-content-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..e96b5f72800e326c1c279dae5be73626d93f1a7b
--- /dev/null
+++ b/LayoutTests/fast/repaint/align-content-change.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('container').style.alignContent = 'stretch';
+}
+onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+#container {
+ display: flex;
+ align-content: space-around;
+ flex-flow: row wrap;
+ width: 200px;
+ height: 300px;
+ background-color: red;
+}
+.item {
+ background-color: green;
+ border: solid thin blue;
+ width: 200px;
+}
+</style>
+<p style="height: 20px">Tests invalidation on align-content style change. Passes if there is no red.</p>
+<div id="container">
+ <div class="item">
+ <div style="height: 50px"></div>
+ </div>
+ <div class="item">
+ <div style="height: 50px"></div>
+ </div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/align-content-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698