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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.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-margins-alignment-vertical-rl.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html
index 50f6c487db2d5ee333c15fa113bbc93e8893ee78..4b1a0616132ea1aaac878a624fc05f982a2fdaf4 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.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>
@@ -11,7 +12,6 @@ body {
.grid {
grid-template-columns: 100px 100px;
grid-template-rows: 200px 200px;
- width: -webkit-fit-content;
margin-bottom: 20px;
}
@@ -38,7 +38,7 @@ body {
<p>Direction: LTR | Self Alignment: center | fixed size items | 1 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL itemsCenter">
+ <div class="grid fit-content verticalRL itemsCenter">
<div class="item autoMarginTop firstRowFirstColumn" data-offset-x="290" data-offset-y="60" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMarginRight firstRowSecondColumn" data-offset-x="200" data-offset-y="130" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMarginLeft secondRowFirstColumn" data-offset-x="180" data-offset-y="30" data-expected-width="20" data-expected-height="40"></div>
@@ -48,7 +48,7 @@ body {
<p>Direction: LTR | Self Alignment: stretch | fixed size items | 4 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL">
+ <div class="grid fit-content verticalRL">
<div class="item autoMargin firstRowFirstColumn" data-offset-x="290" data-offset-y="30" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMargin firstRowSecondColumn" data-offset-x="290" data-offset-y="130" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMargin secondRowFirstColumn" data-offset-x="90" data-offset-y="30" data-expected-width="20" data-expected-height="40"></div>
@@ -58,7 +58,7 @@ body {
<p>Direction: LTR | Self Alignment: center | auto size items | 1 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL itemsCenter">
+ <div class="grid fit-content verticalRL itemsCenter">
<div class="item autoMarginTop firstRowFirstColumn" data-offset-x="290" data-offset-y="60" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMarginRight firstRowSecondColumn" data-offset-x="200" data-offset-y="130" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMarginLeft secondRowFirstColumn" data-offset-x="180" data-offset-y="30" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
@@ -68,7 +68,7 @@ body {
<p>Direction: LTR | Self Alignment: stretch | auto size items | 4 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL">
+ <div class="grid fit-content verticalRL">
<div class="item autoMargin firstRowFirstColumn" data-offset-x="290" data-offset-y="30" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMargin firstRowSecondColumn" data-offset-x="290" data-offset-y="130" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMargin secondRowFirstColumn" data-offset-x="90" data-offset-y="30" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
@@ -79,7 +79,7 @@ body {
<!-- direction RTL -->
<p>Direction: RTL | Self Alignment: center | fixed size items | 1 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL itemsCenter directionRTL" data-expected-width="400" data-expected-height="200">
+ <div class="grid fit-content verticalRL itemsCenter directionRTL" data-expected-width="400" data-expected-height="200">
<div class="item autoMarginTop firstRowFirstColumn" data-offset-x="290" data-offset-y="160" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMarginRight firstRowSecondColumn" data-offset-x="200" data-offset-y="30" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMarginLeft secondRowFirstColumn" data-offset-x="180" data-offset-y="130" data-expected-width="20" data-expected-height="40"></div>
@@ -90,7 +90,7 @@ body {
<p>Direction: RTL | Self Alignment: stretch | fixed size items | 4 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL directionRTL">
+ <div class="grid fit-content verticalRL directionRTL">
<div class="item autoMargin firstRowFirstColumn" data-offset-x="290" data-offset-y="130" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMargin firstRowSecondColumn" data-offset-x="290" data-offset-y="30" data-expected-width="20" data-expected-height="40"></div>
<div class="item autoMargin secondRowFirstColumn" data-offset-x="90" data-offset-y="130" data-expected-width="20" data-expected-height="40"></div>
@@ -100,7 +100,7 @@ body {
<p>Direction: RTL | Self Alignment: center | auto size items | 1 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL itemsCenter directionRTL">
+ <div class="grid fit-content verticalRL itemsCenter directionRTL">
<div class="item autoMarginTop firstRowFirstColumn" data-offset-x="290" data-offset-y="160" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMarginRight firstRowSecondColumn" data-offset-x="200" data-offset-y="30" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMarginLeft secondRowFirstColumn" data-offset-x="180" data-offset-y="130" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
@@ -111,7 +111,7 @@ body {
<p>Direction: RTL | Self Alignment: stretch | auto size items | 4 auto-margin</p>
<div style="position: relative">
- <div class="grid verticalRL directionRTL">
+ <div class="grid fit-content verticalRL directionRTL">
<div class="item autoMargin firstRowFirstColumn" data-offset-x="290" data-offset-y="130" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMargin firstRowSecondColumn" data-offset-x="290" data-offset-y="30" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>
<div class="item autoMargin secondRowFirstColumn" data-offset-x="90" data-offset-y="130" data-expected-width="20" data-expected-height="40"><div class="item"></div></div>

Powered by Google App Engine
This is Rietveld 408576698