summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/percentage-heights-002-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/percentage-heights-002-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-flexbox/percentage-heights-002-ref.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/percentage-heights-002-ref.html b/testing/web-platform/tests/css/css-flexbox/percentage-heights-002-ref.html
new file mode 100644
index 0000000000..55ec381d23
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/percentage-heights-002-ref.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<link rel="author" title="Google Inc." href="http://www.google.com/">
+<style>
+body {
+ position: relative;
+ width: 800px;
+ height: 600px;
+}
+
+#container {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+#top-bar {
+ background-color: green;
+ height: 100px;
+}
+
+#content {
+ background-color: blue;
+ height: 500px;
+}
+</style>
+
+
+<div id="container">
+ <div id="top-bar">
+ Tests that percentage heights get resolved correctly when the flexbox is
+ </div>
+ <div id="content">
+ absolutely positioned without an explicit height. You should see no red.
+ </div>
+</div>
+
+