summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-006.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-006.html')
-rw-r--r--testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-006.html65
1 files changed, 0 insertions, 65 deletions
diff --git a/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-006.html b/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-006.html
deleted file mode 100644
index 023c650cfc..0000000000
--- a/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-006.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<title>Tests 'position-fallback-bounds' should work without default anchor</title>
-<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#fallback-bounds">
-<link rel="author" href="mailto:xiaochengh@chromium.org">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="support/test-common.js"></script>
-
-<style>
-body {
- margin: 0;
-}
-
-#bounds {
- position: absolute;
- left: 0;
- right: 0;
- top: 100px;
- height: calc(100vh + 200px);
- background: lightgray;
- anchor-name: --bounds;
-}
-
-#anchor {
- position: fixed;
- width: 100px;
- height: 100px;
- left: 0;
- top: 100px;
- background: orange;
- anchor-name: --a;
-}
-
-#target {
- position: fixed;
- width: 100px;
- height: 100px;
- background: lime;
- position-try-options: --bottom;
- position-fallback-bounds: --bounds;
- bottom: anchor(--a top);
-}
-
-@position-try --bottom {
- top: anchor(--a bottom);
- bottom: auto;
-}
-</style>
-
-<div id=bounds></div>
-<div id=anchor></div>
-<div id=target></div>
-
-<script>
-promise_test(async () => {
- await waitUntilNextAnimationFrame();
- assert_fallback_position(target, anchor, 'bottom');
-}, "Target is below anchor at initial scroll position");
-
-promise_test(async () => {
- document.documentElement.scrollTop = 100;
- await waitUntilNextAnimationFrame();
- assert_fallback_position(target, anchor, 'top');
-}, "Target moves to above anchor after the additional fallback-bounds rect is scrolled upwards");
-</script>