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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html

Issue 1488493003: [css-grid] refactoring of layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch rebased and refactoring of alignment css rules. Created 4 years, 11 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: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html
index 8e24b751a00fb1219bb18143600d06bf57349a21..94fecac0df55813f4603cd2d426ea6f4b4dfdf1a 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html
@@ -2,6 +2,7 @@
<html>
<head>
<link href="resources/grid.css" rel="stylesheet">
+<link href="resources/grid-alignment.css" rel="stylesheet">
<script src="../../resources/check-layout.js"></script>
<style>
body {
@@ -37,26 +38,6 @@ body {
grid-auto-columns: auto;
grid-auto-rows: auto;
}
-
-.spaceBetween {
- justify-content: space-between;
- align-content: space-between;
-}
-
-.spaceAround {
- justify-content: space-around;
- align-content: space-around;
-}
-
-.spaceEvenly {
- justify-content: space-evenly;
- align-content: space-evenly;
-}
-
-.stretch {
- justify-content: stretch;
- align-content: stretch;
-}
</style>
</head>
<body onload="checkLayout('.grid')">
@@ -65,7 +46,7 @@ body {
<div style="position: relative">
<p>direction: LTR | distribution: 'space-between'</p>
- <div class="grid spaceBetween verticalLR" data-expected-width="200" data-expected-height="300">
+ <div class="grid contentSpaceBetween verticalLR" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="0" data-offset-y="0" data-expected-width="40" data-expected-height="160"></div>
<div class="b" data-offset-x="0" data-offset-y="280" data-expected-width="200" data-expected-height="20"></div>
<div class="c" data-offset-x="160" data-offset-y="0" data-expected-width="40" data-expected-height="20"></div>
@@ -75,7 +56,7 @@ body {
<div style="position: relative">
<p>direction: LTR | distribution: 'space-around'</p>
- <div class="grid spaceAround verticalLR" data-expected-width="200" data-expected-height="300">
+ <div class="grid contentSpaceAround verticalLR" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="30" data-offset-y="40" data-expected-width="40" data-expected-height="120"></div>
<div class="b" data-offset-x="30" data-offset-y="240" data-expected-width="140" data-expected-height="20"></div>
<div class="c" data-offset-x="130" data-offset-y="40" data-expected-width="40" data-expected-height="20"></div>
@@ -85,7 +66,7 @@ body {
<div style="position: relative">
<p>direction: LTR | distribution: 'space-evenly'</p>
- <div class="grid spaceEvenly verticalLR" data-expected-width="200" data-expected-height="300">
+ <div class="grid contentSpaceEvenly verticalLR" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="40" data-offset-y="60" data-expected-width="40" data-expected-height="100"></div>
<div class="b" data-offset-x="40" data-offset-y="220" data-expected-width="120" data-expected-height="20"></div>
<div class="c" data-offset-x="120" data-offset-y="60" data-expected-width="40" data-expected-height="20"></div>
@@ -95,7 +76,7 @@ body {
<div style="position: relative">
<p>direction: LTR | distribution: 'stretch'</p>
- <div class="grid stretchedGrid stretch verticalLR" data-expected-width="200" data-expected-height="300">
+ <div class="grid stretchedGrid contentStretch verticalLR" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="200"></div>
<div class="b" data-offset-x="0" data-offset-y="200" data-expected-width="200" data-expected-height="100"></div>
<div class="c" data-offset-x="100" data-offset-y="0" data-expected-width="100" data-expected-height="100"></div>
@@ -106,7 +87,7 @@ body {
<!-- RTL direction. -->
<div style="position: relative">
<p>direction: RTL | distribution: 'space-between'</p>
- <div class="grid spaceBetween verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
+ <div class="grid contentSpaceBetween verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="0" data-offset-y="140" data-expected-width="40" data-expected-height="160"></div>
<div class="b" data-offset-x="0" data-offset-y="0" data-expected-width="200" data-expected-height="20"></div>
<div class="c" data-offset-x="160" data-offset-y="280" data-expected-width="40" data-expected-height="20"></div>
@@ -116,7 +97,7 @@ body {
<div style="position: relative">
<p>direction: RTL | distribution: 'space-around'</p>
- <div class="grid spaceAround verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
+ <div class="grid contentSpaceAround verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="30" data-offset-y="140" data-expected-width="40" data-expected-height="120"></div>
<div class="b" data-offset-x="30" data-offset-y="40" data-expected-width="140" data-expected-height="20"></div>
<div class="c" data-offset-x="130" data-offset-y="240" data-expected-width="40" data-expected-height="20"></div>
@@ -126,7 +107,7 @@ body {
<div style="position: relative">
<p>direction: RTL | distribution: 'space-evenly'</p>
- <div class="grid spaceEvenly verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
+ <div class="grid contentSpaceEvenly verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="40" data-offset-y="140" data-expected-width="40" data-expected-height="100"></div>
<div class="b" data-offset-x="40" data-offset-y="60" data-expected-width="120" data-expected-height="20"></div>
<div class="c" data-offset-x="120" data-offset-y="220" data-expected-width="40" data-expected-height="20"></div>
@@ -136,7 +117,7 @@ body {
<div style="position: relative">
<p>direction: RTL | distribution: 'stretch'</p>
- <div class="grid stretchedGrid stretch verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
+ <div class="grid stretchedGrid contentStretch verticalLR directionRTL" data-expected-width="200" data-expected-height="300">
<div class="a" data-offset-x="0" data-offset-y="100" data-expected-width="100" data-expected-height="200"></div>
<div class="b" data-offset-x="0" data-offset-y="0" data-expected-width="200" data-expected-height="100"></div>
<div class="c" data-offset-x="100" data-offset-y="200" data-expected-width="100" data-expected-height="100"></div>

Powered by Google App Engine
This is Rietveld 408576698