Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-navigation/tentative/parsing/link-to-invalid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Invalid :link-to() rules</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test(()=> {
test_invalid_rule(":link-to() {}");
}, "empty");
test(()=> {
test_invalid_rule(":link-to(--loc garbage) {}");
}, "trailing garbage");
test(()=> {
test_invalid_rule(":link-to(rgb(255 0 0)) {}");
}, "invalid function");
test(()=> {
test_invalid_rule(":link-to(url(255 0 0)) {}");
}, "invalid function argument");
</script>