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-self-change-keeping-geometry-grid.html

Issue 1130843004: [CSS Grid Layout] New alignment related repaint layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Anohter test expected to fail added to TestExpectations. Created 5 years, 7 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-self-change-keeping-geometry-grid.html
diff --git a/LayoutTests/fast/repaint/align-self-change-keeping-geometry.html b/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid.html
similarity index 63%
copy from LayoutTests/fast/repaint/align-self-change-keeping-geometry.html
copy to LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid.html
index f6b07be1b38d395e58fe85f18a9a142c9f219282..7fd8feea3b31cf38ea75821b5f79e40788a93cba 100644
--- a/LayoutTests/fast/repaint/align-self-change-keeping-geometry.html
+++ b/LayoutTests/fast/repaint/align-self-change-keeping-geometry-grid.html
@@ -3,27 +3,30 @@
<script>
function repaintTest() {
document.getElementsByClassName('item')[0].style.alignSelf = 'stretch';
- document.getElementsByClassName('item')[1].style.alignSelf = 'stretch';
}
onload = runRepaintTest;
</script>
<style>
-.flex {
- display: flex;
- align-items: flex-start;
+body {
+ margin: 0;
+}
+#container {
+ display: grid;
+ grid: 100px / 300px;
width: 200px;
height: 300px;
background-color: red;
}
.item {
+ grid-row: 1;
+ grid-column: 1;
+ align-self: start;
background-color: green;
- border: solid thin blue;
- width: 100px;
- height: 300px;
}
</style>
<p style="height: 20px">There should be no invalidations because align-self style change causes no visual change.</p>
-<div class="flex">
- <div class="item"></div>
- <div class="item"></div>
+<div id="container">
+ <div class="item">
+ <div style="height: 300px"></div>
+ </div>
</div>

Powered by Google App Engine
This is Rietveld 408576698