summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-005.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-005.html')
-rw-r--r--testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-005.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-005.html b/testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-005.html
new file mode 100644
index 0000000000..70f554ba37
--- /dev/null
+++ b/testing/web-platform/tests/css/css-grid/grid-items/aspect-ratio-005.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-grid-1/#algo-overview">
+<meta name="assert" content="An element with an aspect-ratio resolves its percentage against the definite row and the track sizes get updated.">
+<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
+<style>
+ body { overflow: hidden; }
+</style>
+<p>Test passes if there is a filled green square.</p>
+<div style="display: inline-grid; grid-template-rows: 50px 50px; background: red; height: 100px;">
+ <div style="grid-row: 1; background: green; aspect-ratio: 2/1; height: 100%;"></div>
+ <div style="grid-row: 2; background: green;"></div>
+</div>