Index: LayoutTests/fast/css-grid-layout/justify-self-cell.html |
diff --git a/LayoutTests/fast/css-grid-layout/justify-self-cell.html b/LayoutTests/fast/css-grid-layout/justify-self-cell.html |
index 202a784a62da1858f4d3bf70d9a98599f5d40d77..5f2d619a85b73fc585d520e9b85e9807a2433dde 100644 |
--- a/LayoutTests/fast/css-grid-layout/justify-self-cell.html |
+++ b/LayoutTests/fast/css-grid-layout/justify-self-cell.html |
@@ -13,6 +13,10 @@ |
height: 20px; |
} |
+.justifySelfAuto { |
+ justify-self: auto; |
+} |
+ |
.justifySelfStretch { |
justify-self: stretch; |
} |
@@ -52,6 +56,10 @@ |
.justifySelfSelfEnd { |
justify-self: self-end; |
} |
+ |
+.justifyItemsCenter { |
+ justify-items: center; |
+} |
</style> |
<script src="../../resources/check-layout.js"></script> |
<body onload="checkLayout('.grid')"> |
@@ -70,13 +78,32 @@ |
<div style="position: relative" class="constrainedContainer"> |
<div class="grid" data-expected-width="200" data-expected-height="400"> |
- <div class="cell justifySelfFlexEnd firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfFlexEnd firstRowFirstColumn" data-offset-x="90" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfFlexStart firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfStart secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfEnd secondRowSecondColumn" data-offset-x="190" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
</div> |
</div> |
+<!-- Default justification and initial values. --> |
+<div style="position: relative"> |
+ <div class="grid justifyItemsCenter" data-expected-width="200" data-expected-height="400"> |
+ <div class="cell justifySelfAuto firstRowFirstColumn" data-offset-x="45" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell firstRowSecondColumn" data-offset-x="145" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfSelfStart secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfSelfEnd secondRowSecondColumn" data-offset-x="190" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
+ </div> |
+</div> |
+ |
+<div style="position: relative"> |
+ <div class="grid" data-expected-width="200" data-expected-height="400"> |
+ <div class="cell justifySelfAuto firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell firstRowSecondColumn" data-offset-x="100" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfStart secondRowFirstColumn" data-offset-x="0" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfEnd secondRowSecondColumn" data-offset-x="190" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
+ </div> |
+</div> |
+ |
<!-- Vertical writing mode. --> |
<div style="position: relative" class="constrainedContainer"> |
<div class="grid verticalRL" data-expected-width="400" data-expected-height="200"> |
@@ -91,7 +118,7 @@ |
<div style="position: relative" class="constrainedContainer"> |
<div class="grid verticalLR" data-expected-width="400" data-expected-height="200"> |
- <div class="cell justifySelfFlexEnd firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfFlexEnd firstRowFirstColumn" data-offset-x="0" data-offset-y="80" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfFlexStart firstRowSecondColumn" data-offset-x="0" data-offset-y="100" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfStart secondRowFirstColumn" data-offset-x="200" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfEnd secondRowSecondColumn" data-offset-x="200" data-offset-y="180" data-expected-width="10" data-expected-height="20"></div> |
@@ -111,7 +138,7 @@ |
<div style="position: relative" class="constrainedContainer"> |
<div class="grid directionRTL" data-expected-width="200" data-expected-height="400"> |
- <div class="cell justifySelfFlexEnd firstRowFirstColumn" data-offset-x="90" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfFlexEnd firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfFlexStart firstRowSecondColumn" data-offset-x="190" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfStart secondRowFirstColumn" data-offset-x="90" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfEnd secondRowSecondColumn" data-offset-x="100" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
@@ -131,7 +158,7 @@ |
<div style="position: relative" class="constrainedContainer"> |
<div class="grid" data-expected-width="200" data-expected-height="400"> |
- <div class="cell justifySelfFlexEnd firstRowFirstColumn directionRTL" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
+ <div class="cell justifySelfFlexEnd firstRowFirstColumn directionRTL" data-offset-x="90" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfFlexStart firstRowSecondColumn directionRTL" data-offset-x="100" data-offset-y="0" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfStart secondRowFirstColumn directionRTL" data-offset-x="90" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |
<div class="cell justifySelfSelfEnd secondRowSecondColumn directionRTL" data-offset-x="100" data-offset-y="200" data-expected-width="10" data-expected-height="20"></div> |