tor-browser

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

x-pseudo-element.html (767B)


      1 <!doctype html>
      2 <title>CSS Test: 'x-' prefixed pseudo-elements don't parse correctly</title>
      3 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      4 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
      5 <link rel="help" href="https://drafts.csswg.org/selectors-4/#pseudo-elements">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <style>
      9  p {
     10    color: green;
     11  }
     12  ::x-something-nobody-would-think-of, p {
     13    color: red;
     14  }
     15 </style>
     16 <p>Should be green
     17 <script>
     18  test(function() {
     19    let p = document.querySelector('p');
     20    assert_equals(getComputedStyle(p).color, "rgb(0, 128, 0)");
     21  }, "x-prefixed pseudo-elements should make the whole rule invalid")
     22 </script>