summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-002-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-002-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-002-ref.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-002-ref.html b/testing/web-platform/tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-002-ref.html
new file mode 100644
index 0000000000..0c09ca180f
--- /dev/null
+++ b/testing/web-platform/tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-002-ref.html
@@ -0,0 +1,56 @@
+
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Grid Layout Test: Absolute positioning grid container parent</title>
+
+<style>
+
+ .grid {
+ display: grid;
+ background-color: gray;
+ grid-template-columns: 50px 100px 150px;
+ grid-template-rows: 25px 50px 100px;
+ width: 300px;
+ height: 200px;
+ border: 5px solid black;
+ margin: 20px 30px;
+ padding: 5px 15px;
+ }
+
+ .container {
+ width: 500px;
+ height: 400px;
+ /* Ensures that the element is the containing block of the absolutely positioned elements. */
+ position: relative;
+ }
+
+ #item {
+ width: 100%;
+ height: 100%;
+ padding: 10px;
+ background-color: blue;
+ grid-column: 1;
+ grid-row: 1;
+ }
+
+ #absolute {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ background-color: pink;
+ grid-column: auto;
+ grid-row: auto;
+ top: 20px;
+ left: 60px;
+ }
+
+</style>
+
+<p>The test passes if it has the same output than the reference.</p>
+
+<div class="container">
+ <div class="grid">
+ <div id="item"></div>
+ <div id="absolute"></div>
+ </div>
+</div> \ No newline at end of file