summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/reference/contain-layout-021-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/reference/contain-layout-021-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-contain/reference/contain-layout-021-ref.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/reference/contain-layout-021-ref.html b/testing/web-platform/tests/css/css-contain/reference/contain-layout-021-ref.html
new file mode 100644
index 0000000000..c29b12e137
--- /dev/null
+++ b/testing/web-platform/tests/css/css-contain/reference/contain-layout-021-ref.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Containment Test: Layout containment fixed positioned descendants</title>
+<style>
+#green {
+ background: green;
+ width: 100px;
+ height: 100px;
+}
+body {
+ height: 3000px;
+ margin: 0px;
+}
+#spacer {
+ height: 200px;
+}
+</style>
+<script>
+function runTest() {
+ document.documentElement.scrollTop += 200;
+}
+</script>
+<body onload="runTest()">
+<div id="spacer"></div>
+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+<div id="green"></div>
+</body>