tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

page-rules-001.html (736B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Mozilla" href="https://mozilla.org">
      3 <link rel="help" href="https://drafts.csswg.org/css-page-3/#at-page-rules">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/css/support/parsing-testcommon.js"></script>
      7 <script>
      8 test(t => {
      9    // At least check that empty selectors are not allowed.
     10    test_invalid_rule("@page , { }");
     11    test_valid_rule("@page { }");
     12    // Some basic name tests.
     13    test_valid_rule("@page a { }");
     14    test_valid_rule("@page page1 { }");
     15    test_valid_rule("@page name1, name2 { }");
     16    test_invalid_rule("@page a, { }");
     17    test_invalid_rule("@page ,a { }");
     18 }, "page-rules-001");
     19 </script>