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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background-rtl.html

Issue 1824323002: [css-grid] Fix positioned children in RTL direction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded LayoutUnit() Created 4 years, 9 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-positioned-items-background-rtl.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background-rtl.html
similarity index 75%
copy from third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background.html
copy to third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background-rtl.html
index d4370145962b9535de82ad87ea5ed428c4bb6ee8..1c256e8af7aaba88bf28e97ec9cd6434f0853901 100644
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background.html
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-background-rtl.html
@@ -6,13 +6,14 @@
.grid {
grid-template-columns: 100px 200px;
grid-template-rows: 50px 150px;
- width: 400px;
+ width: 500px;
height: 300px;
border: 5px solid black;
margin: 30px;
padding: 15px;
/* Ensures that the grid container is the containing block of the absolutely positioned grid children. */
position: relative;
+ background-color: transparent;
}
.container {
@@ -51,16 +52,16 @@
</style>
<body>
-<p>This test checks that the background of positioned items is painted in the right position.</p>
+<p>This test checks that the background of positioned items is painted in the right position using RTL direction.</p>
<p>The test passes if you see 4 green boxes and no red.</p>
<div class="container">
- <div class="absolute red" style="left: 55px; top: 50px; width: 100px; height: 50px"></div>
- <div class="absolute red" style="left: 290px; top: 50px; width: 50px; height: 20px"></div>
- <div class="absolute red" style="left: 50px; top: 115px; width: 50px; height: 30px"></div>
- <div class="absolute red" style="left: 175px; top: 135px; width: 145px; height: 75px"></div>
- <div class="grid">
+ <div class="absolute red" style="left: 455px; top: 50px; width: 100px; height: 50px"></div>
+ <div class="absolute red" style="left: 390px; top: 50px; width: 50px; height: 20px"></div>
+ <div class="absolute red" style="left: 500px; top: 115px; width: 50px; height: 30px"></div>
+ <div class="absolute red" style="left: 275px; top: 135px; width: 145px; height: 75px"></div>
+ <div class="grid directionRTL">
<div class="absolute onlyFirstRowOnlyFirstColumn sizedToGridArea"
style="left: 5px;">
</div>

Powered by Google App Engine
This is Rietveld 408576698