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/location-invalid-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Invalid @location 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(`@location nodashes {\n}`);
}, "no double-dash in location name");
test(()=> {
test_invalid_rule(`@location --r1 --r2 {\n}`);
}, "two names");
test(()=> {
test_invalid_rule(`@location (--r1) {\n}`);
}, "parentheses");
</script>