tor-browser

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

invalid-pseudo-elements.html (630B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSSOM: Test that rules with invalid pseudo elements are not found</title>
      4 <link rel="help" href="https://drafts.csswg.org/cssom/">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <style>
      8    ::part {}
      9    ::slotted {}
     10    ::highlight {}
     11 </style>
     12 <script>
     13    test(() => {
     14        assert_equals(document.styleSheets[0].cssRules[0]?.selectorText, undefined, "No associated selectorText");
     15        assert_equals(document.styleSheets[0].cssRules[0], undefined, "No invalid pseudo element rule should be found");
     16    });
     17 </script>