Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-anchor-position/parsing/anchor-scope-computed.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Anchor Positioning Test: Computed anchor-scope</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<script src="/css/support/inheritance-testcommon.js"></script>
<div id="container">
<div id="target"></div>
</div>
<script>
test_computed_value("anchor-scope", "none");
test_computed_value("anchor-scope", "initial", "none");
test_computed_value("anchor-scope", "all");
test_computed_value("anchor-scope", "--a");
test_computed_value("anchor-scope", "--a, --b");
test_computed_value("anchor-scope", "--a, --b, --c");
assert_not_inherited("anchor-scope", "none", "all");
</script>