tor-browser

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

mix-blend-mode-parsing.html (1589B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: parsing mix-blend-mode property</title>
      6        <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com">
      7        <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com">
      8        <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com">
      9        <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode">
     10        <meta name="flags" content="dom">
     11        <meta name="assert" content="Test checks that the value specified for mix-blend-mode property is correctly parsed">
     12        <script src="/resources/testharness.js"></script>
     13        <script src="/resources/testharnessreport.js"></script>
     14    </head>
     15    <body>
     16        <div id="log"></div>
     17        <script type="text/javascript">
     18            function testParse(declaration) {
     19                var div = document.createElement("div");
     20                div.setAttribute("style", declaration);
     21                return div.style.mixBlendMode;
     22            }
     23 
     24            var blendModes = ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn",
     25                      "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"];
     26 
     27            for (var i = 0; i < blendModes.length; i++) {
     28                test(function() {assert_equals(testParse("mix-blend-mode: " + blendModes[i]), blendModes[i] )}, "Mix-blend-mode " + blendModes[i]);
     29            };
     30        </script>
     31    </body>
     32 </html>