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

Unified Diff: LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html

Issue 18516007: Add support for 'order' on grid items (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Squashed the 2 constructors per Ojan's review comment Created 7 years, 6 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: LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html
diff --git a/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html b/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html
new file mode 100644
index 0000000000000000000000000000000000000000..552cbe55b3c30aab1cdd6ec338ffb36e536da718
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner)
+ testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
+</script>
+<link href="resources/grid.css" rel="stylesheet">
+<style>
+.grid {
+ grid-definition-rows: 100px;
+ grid-definition-columns: 100px;
+ width: -webkit-fit-content;
+}
+.sizedToGridArea {
+ background-color: green;
+}
+
+.red {
+ background-color: red;
+}
+
+.negativeOrder {
+ order: -1;
+}
+
+.positiveOrder {
+ order: 10;
+}
+</style>
+</head>
+<body>
+ <p>This test checks that 'order' changes the paint ordering.</p>
+ <p>There should be 2 green squares below.</p>
+ <div class="grid">
+ <div class="sizedToGridArea firstRowFirstColumn"></div>
+ <div class="sizedToGridArea firstRowFirstColumn negativeOrder red"></div>
+ </div>
+
+ <div class="grid">
+ <div class="sizedToGridArea firstRowFirstColumn positiveOrder"></div>
+ <div class="sizedToGridArea firstRowFirstColumn red"></div>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698