1
0
Fork 0
firefox/testing/web-platform/tests/css/css-anchor-position/property-interpolations.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

79 lines
1.7 KiB
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Anchor Positioning Test: Interpolation of anchor related properties</title>
<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>
<body>
<script>
test_no_interpolation({
property: 'anchor-name',
from: 'none',
to: '--foo',
});
test_no_interpolation({
property: 'anchor-name',
from: '--foo',
to: '--bar',
});
test_no_interpolation({
property: 'position-anchor',
from: 'auto',
to: '--foo',
});
test_no_interpolation({
property: 'position-anchor',
from: '--foo',
to: '--bar',
});
test_no_interpolation({
property: 'position-area',
from: 'none',
to: 'center',
});
test_no_interpolation({
property: 'position-area',
from: 'left',
to: 'right',
});
test_no_interpolation({
property: 'position-try-fallbacks',
from: 'none',
to: '--foo',
});
test_no_interpolation({
property: 'position-try-fallbacks',
from: 'none',
to: 'flip-block',
});
test_no_interpolation({
property: 'position-try-fallbacks',
from: 'flip-inline',
to: 'flip-block',
});
test_no_interpolation({
property: 'position-try-fallbacks',
from: '--foo',
to: '--bar',
});
test_no_interpolation({
property: 'position-try-fallbacks',
from: '--foo',
to: 'flip-block',
});
test_no_interpolation({
property: 'position-try-order',
from: 'normal',
to: 'most-width',
});
test_no_interpolation({
property: 'position-try-order',
from: 'most-width',
to: 'most-height',
});
</script>