tor-browser

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

registered-property-value-016.https.html (805B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <title>Values of ident-properties reach worklet</title>
      4 <link rel="help" href="https://drafts.css-houdini.org/css-paint-api/">
      5 <link rel="match" href="parse-input-arguments-ref.html">
      6 <script src="/common/reftest-wait.js"></script>
      7 <script src="/common/worklet-reftest.js"></script>
      8 <script src="./resources/utils.js"></script>
      9 <body>
     10 <div id="target"></div>
     11 <script>
     12    try {
     13      CSS.registerProperty({
     14        name: '--prop',
     15        syntax: 'foo | bar | none',
     16        initialValue: 'none',
     17        inherits: false
     18      });
     19 
     20      target.style.setProperty('--prop', 'bar');
     21 
     22      expectWorkletValue(target, '--prop', '[CSSKeywordValue bar]');
     23    } catch(e) {
     24      document.body.textContent = e;
     25      takeScreenshot();
     26    }
     27 </script>
     28 </body>
     29 </html>