Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE html>
<title>CSS Anchor Positioning: position-area should not affect computed inset values</title>
<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>