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

Unified Diff: LayoutTests/fast/repaint/align-items-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
Index: LayoutTests/fast/repaint/align-items-change.html
diff --git a/LayoutTests/fast/repaint/align-items-change.html b/LayoutTests/fast/repaint/align-items-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..0fffb18d748492a55c5dbb3a0519d40c765cb0af
--- /dev/null
+++ b/LayoutTests/fast/repaint/align-items-change.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('container').style.alignItems = 'stretch';
+}
+onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+#container {
+ display: flex;
+ align-items: flex-start;
+ width: 200px;
+ height: 300px;
+ background-color: red;
+}
+.item {
+ background-color: green;
+ border: solid thin blue;
+ width: 100px;
+}
+</style>
+<p style="height: 20px">Tests invalidation on align-items style change. Passes if there is no red.</p>
+<div id="container">
+ <div class="item">
+ <div style="height: 100px"></div>
+ </div>
+ <div class="item">
+ <div style="height: 150px"></div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698