Position grid items by row/column index
[WebKit.git] / LayoutTests / fast / css-grid-layout / containing-block-grids.html
index 5e30ec590bab8b1bd2444a3874d30f526e63f789..8bb4b8abdf79ca53b82a74b3151f585367bc52be 100644 (file)
@@ -1,14 +1,19 @@
 <!DOCTYPE html>
 <html>
 <head>
+    <script>
+        if (window.testRunner)
+            testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
+    </script>
     <style>
         div { width: 100px; height: 100px; }
-        .relative-positioned-grid { display: -webkit-grid; background-color: red; position:relative; }
-        .relative-positioned-inline-grid { display: -webkit-inline-grid; background-color: red; position: relative; }
+        .relative-positioned-grid { display: none; background-color: red; position:relative; }
+        .relative-positioned-inline-grid { display: none; background-color: red; position: relative; }
     </style>
 </head>
 <body>
-<p>Grids can act as containing blocks for positioned content.
-<div class="relative-positioned-grid"><div style="background-color: green; left: 0; top: 0"></div>
-<div class="relative-positioned-inline-grid"><div style="background-color:green; left: 0; top: 0"></div>
-</p>
+<p>Grids can act as containing blocks for positioned content.</p>
+<div class="relative-positioned-grid" style="display: -webkit-grid"><div style="background-color: green; left: 0; top: 0"></div></div>
+<div class="relative-positioned-inline-grid" style="display: -webkit-inline-grid"><div style="background-color:green; left: 0; top: 0"></div></div>
+</body>
+</html>