1
0
Fork 0
firefox/testing/web-platform/tests/css/css-anchor-position/position-area-computed-insets.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

23 lines
1 KiB
HTML

<!DOCTYPE html>
<title>CSS Anchor Positioning: position-area should not affect computed inset values</title>
<link rel="help" href="https://drafts.csswg.org/css-anchor-position/#position-area">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/css-typed-om/resources/testhelper.js"></script>
<style>
#abs {
position: absolute;
position-area: span-all;
}
</style>
<div id="abs"></div>
<script>
test(() => {
let style = abs.computedStyleMap();
assert_equals(style.get("position-area").toString(), "span-all", "position-area is supported");
assert_style_value_equals(style.get("left"), new CSSKeywordValue("auto"));
assert_style_value_equals(style.get("right"), new CSSKeywordValue("auto"));
assert_style_value_equals(style.get("top"), new CSSKeywordValue("auto"));
assert_style_value_equals(style.get("bottom"), new CSSKeywordValue("auto"));
}, "position-area does not affect insets at computed value time");
</script>