Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 13 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-navigation/tentative/parsing/location-valid.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>@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(()=> {
const canonical = `@location --loc {\n}`;
test_valid_rule(canonical);
test_valid_rule(`@location --loc{}`, canonical);
}, "no descriptors");
test(()=> {
test_valid_rule("@location --ahoi\\(hoi {}", "@location --ahoi\\(hoi {\n}");
}, "escape identifiers");
</script>