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

Unified Diff: LayoutTests/fast/repaint/justify-self-change-keeping-geometry.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/justify-self-change-keeping-geometry.html
diff --git a/LayoutTests/fast/repaint/justify-self-change.html b/LayoutTests/fast/repaint/justify-self-change-keeping-geometry.html
similarity index 89%
copy from LayoutTests/fast/repaint/justify-self-change.html
copy to LayoutTests/fast/repaint/justify-self-change-keeping-geometry.html
index c9008050862f7249c3ef7f07cbcfb629d5db1dbc..99d756281f6400583216ddec9f26b95cec17cab5 100644
--- a/LayoutTests/fast/repaint/justify-self-change.html
+++ b/LayoutTests/fast/repaint/justify-self-change-keeping-geometry.html
@@ -2,8 +2,8 @@
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
- document.getElementsByClassName('item1')[0].style.justifySelf = 'start';
- document.getElementsByClassName('item2')[0].style.justifySelf = 'end';
+ document.getElementsByClassName('item1')[0].style.justifySelf = 'left';
+ document.getElementsByClassName('item2')[0].style.justifySelf = 'right';
}
onload = runRepaintTest;
</script>
@@ -14,7 +14,6 @@ body {
#container {
display: grid;
grid: 100px 100px / 150px 150px;
- justify-items: center;
width: 200px;
height: 300px;
background-color: red;
@@ -22,15 +21,15 @@ body {
.item1 {
grid-row: 1;
grid-column: 1;
+ justify-self: start;
background-color: green;
- border: solid thin blue;
width: 50px;
}
.item2 {
grid-row: 1;
grid-column: 2;
+ justify-self: end;
background-color: green;
- border: solid thin blue;
width: 50px;
</style>
<p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p>

Powered by Google App Engine
This is Rietveld 408576698