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

Unified Diff: LayoutTests/fast/repaint/align-content-change-no-flex.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-content-change-no-flex.html
diff --git a/LayoutTests/fast/repaint/align-content-change-no-flex.html b/LayoutTests/fast/repaint/align-content-change-no-flex.html
new file mode 100644
index 0000000000000000000000000000000000000000..99399923920befef5f19e5c385e77bc1f5ba42b1
--- /dev/null
+++ b/LayoutTests/fast/repaint/align-content-change-no-flex.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('container').style.alignContent = 'flex-end';
+}
+onload = runRepaintTest;
+</script>
+<style>
+.container {
+ width: 200px;
+ height: 300px;
+ background-color: blue;
+}
+.item {
+ background-color: green;
+ border: solid thin blue;
+}
+</style>
+There should be no invalidations when align-content changes on a non-flex container.
+<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