Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-page/parsing/page-rules-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
test(t => {
// At least check that empty selectors are not allowed.
test_invalid_rule("@page , { }");
test_valid_rule("@page { }");
// Some basic name tests.
test_valid_rule("@page a { }");
test_valid_rule("@page page1 { }");
test_valid_rule("@page name1, name2 { }");
test_invalid_rule("@page a, { }");
test_invalid_rule("@page ,a { }");
}, "page-rules-001");
</script>