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-parsing.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Anchor Positioning Test: Parsing of anchor-scope</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<div id="target"></div>
<script>
test_valid_value("anchor-scope", "initial");
test_valid_value("anchor-scope", "inherit");
test_valid_value("anchor-scope", "unset");
test_valid_value("anchor-scope", "revert");
test_valid_value("anchor-scope", "none");
test_valid_value("anchor-scope", "all");
test_valid_value("anchor-scope", "--a");
test_valid_value("anchor-scope", "--a, --b");
test_valid_value("anchor-scope", "--a, --b, --c");
test_invalid_value("anchor-scope", "--a none");
test_invalid_value("anchor-scope", "none --a");
test_invalid_value("anchor-scope", "none all");
test_invalid_value("anchor-scope", "--a --b");
test_invalid_value("anchor-scope", "a, b, c");
test_invalid_value("anchor-scope", "");
</script>