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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html

Issue 1488493003: [css-grid] refactoring of layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html
index 34014ac3d8d5b25fad860ce5137754be58c629da..fefbbd789848117021ed6f7329af255b98ae6337 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
+<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
<link href="resources/grid.css" rel="stylesheet">
<script src="../../resources/check-layout.js"></script>
<style>
@@ -15,7 +16,6 @@ body {
border-width: 5px 10px 15px 20px;
border-style: dotted;
border-color: blue;
- width: -webkit-fit-content;
position: relative;
}
@@ -77,7 +77,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR | align-items: 'auto' | justify-items: 'auto'</p>
- <div class="grid itemsStart" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content itemsStart" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="46" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="cell firstRowSecondColumn" data-offset-x="146" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="cell secondRowFirstColumn" data-offset-x="46" data-offset-y="214" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
@@ -88,7 +88,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR | align-items: 'center' | justify-items: 'center'</p>
- <div class="grid itemsCenter" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content itemsCenter" data-expected-width="375" data-expected-height="450">
<div class="firstRowFirstColumn cell" data-offset-x="74" data-offset-y="86" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -99,7 +99,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR | align-items: 'end' | justify-items: 'end'</p>
- <div class="grid itemsEnd" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content itemsEnd" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="102" data-offset-y="158" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -110,7 +110,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR | align-items: 'left' | justify-items: 'left'</p>
- <div class="grid itemsLeft" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content itemsLeft" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="46" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -121,7 +121,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR | align-items: 'right' | justify-items: 'right'</p>
- <div class="grid itemsRight" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content itemsRight" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="102" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -132,7 +132,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR (ortho) | align-items: 'self-start' | justify-items: 'self-start'</p>
- <div class="grid directionLTR itemsSelfStart" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionLTR itemsSelfStart" data-expected-width="375" data-expected-height="450">
<div class="directionRTL cell firstRowFirstColumn" data-offset-x="102" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionRTL stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionRTL stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -143,7 +143,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR (ortho) | align-items: 'self-end' | justify-items: 'self-end'</p>
- <div class="grid directionLTR itemsSelfEnd" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionLTR itemsSelfEnd" data-expected-width="375" data-expected-height="450">
<div class="directionRTL cell firstRowFirstColumn" data-offset-x="46" data-offset-y="158" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionRTL stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionRTL stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -154,7 +154,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR (parall) | align-items: 'self-start' | justify-items: 'self-start'</p>
- <div class="grid directionLTR itemsSelfStart" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionLTR itemsSelfStart" data-expected-width="375" data-expected-height="450">
<div class="directionLTR cell firstRowFirstColumn" data-offset-x="46" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionLTR stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionLTR stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -165,7 +165,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: LTR - (parall) | align-items: 'self-end' | justify-items: 'self-end'</p>
- <div class="grid directionLTR itemsSelfEnd" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionLTR itemsSelfEnd" data-expected-width="375" data-expected-height="450">
<div class="directionLTR cell firstRowFirstColumn" data-offset-x="102" data-offset-y="158" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionLTR stretch firstRowSecondColumn" data-offset-x="130" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionLTR stretch secondRowFirstColumn" data-offset-x="30" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -177,7 +177,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL | align-items: 'auto' | justify-items: 'auto'</p>
- <div class="grid directionRTL itemsStart" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsStart" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="302" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="cell firstRowSecondColumn" data-offset-x="202" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="cell secondRowFirstColumn" data-offset-x="302" data-offset-y="214" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
@@ -188,7 +188,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL | align-items: 'center' | justify-items: 'center'</p>
- <div class="grid directionRTL itemsCenter" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsCenter" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="274" data-offset-y="86" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -199,7 +199,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL | align-items: 'end' | justify-items: 'end'</p>
- <div class="grid directionRTL itemsEnd" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsEnd" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="246" data-offset-y="158" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -210,7 +210,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL | align-items: 'left' | justify-items: 'left'</p>
- <div class="grid directionRTL itemsLeft" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsLeft" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="246" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -221,7 +221,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL | align-items: 'right' | justify-items: 'right'</p>
- <div class="grid directionRTL itemsRight" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsRight" data-expected-width="375" data-expected-height="450">
<div class="cell firstRowFirstColumn" data-offset-x="302" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -232,7 +232,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL (ortho) | align-items: 'self-start' | justify-items: 'self-start'</p>
- <div class="grid directionRTL itemsSelfStart" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsSelfStart" data-expected-width="375" data-expected-height="450">
<div class="directionLTR cell firstRowFirstColumn" data-offset-x="246" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionLTR stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionLTR stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -243,7 +243,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL (ortho) | align-items: 'self-end' | justify-items: 'self-end'</p>
- <div class="grid directionRTL itemsSelfEnd" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsSelfEnd" data-expected-width="375" data-expected-height="450">
<div class="directionLTR cell firstRowFirstColumn" data-offset-x="302" data-offset-y="158" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionLTR stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionLTR stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -254,7 +254,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL (parall) | align-items: 'self-start' | justify-items: 'self-start'</p>
- <div class="grid directionRTL itemsSelfStart" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsSelfStart" data-expected-width="375" data-expected-height="450">
<div class="directionRTL cell firstRowFirstColumn" data-offset-x="302" data-offset-y="14" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionRTL stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionRTL stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>
@@ -265,7 +265,7 @@ body {
<div>
<p>border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px<br>
direction: RTL (parall) | align-items: 'self-end' | justify-items: 'self-end'</p>
- <div class="grid directionRTL itemsSelfEnd" data-expected-width="375" data-expected-height="450">
+ <div class="grid fit-content directionRTL itemsSelfEnd" data-expected-width="375" data-expected-height="450">
<div class="directionRTL cell firstRowFirstColumn" data-offset-x="246" data-offset-y="158" data-expected-width="20" data-expected-height="40"><div class="content"></div></div>
<div class="directionRTL stretch firstRowSecondColumn" data-offset-x="30" data-offset-y="10" data-expected-width="200" data-expected-height="200"><div class="content"></div></div>
<div class="directionRTL stretch secondRowFirstColumn" data-offset-x="230" data-offset-y="210" data-expected-width="100" data-expected-height="200"><div class="content"></div></div>

Powered by Google App Engine
This is Rietveld 408576698