diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-001.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-001.html b/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-001.html index 7735115e59..ebd1e78fb9 100644 --- a/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-001.html +++ b/testing/web-platform/tests/css/css-anchor-position/position-fallback-bounds-001.html @@ -49,20 +49,22 @@ body { #target1 { anchor-default: --a1; - position-fallback: --top-then-bottom; + bottom: anchor(top); + position-try-options: --bottom; } #target2 { anchor-default: --a2; - position-fallback: --bottom-then-top; + top: anchor(bottom); + position-try-options: --top; } -@position-fallback --top-then-bottom { - @try { bottom: anchor(top); } - @try { top: anchor(bottom); } +@position-try --bottom { + bottom: auto; + top: anchor(bottom); } -@position-fallback --bottom-then-top { - @try { top: anchor(bottom); } - @try { bottom: anchor(top); } +@position-try --top { + top: auto; + bottom: anchor(top); } </style> |