tor-browser

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

inline-style.html (1289B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS integration - styling SVG from inline style</title>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7    <script src="/common/utils.js"></script>
      8    <!-- Common global functions for referrer-policy tests. -->
      9    <script src="/common/security-features/resources/common.sub.js"></script>
     10    <!-- Helper functions for referrer-policy css tests. -->
     11    <script src="/referrer-policy/css-integration/css-test-helper.js"></script>
     12    <meta name="referrer" content="origin">
     13  </head>
     14  <body>
     15    <p>Check that resources from inline styles are loaded with
     16    the referrer and referrer policy from the document.</p>
     17    <script>
     18      function setInlineStyle(test)
     19      {
     20        test.expected = location.origin + "/";
     21        let svg = createSvg();
     22        document.body.appendChild(svg);
     23        let element = svg.getElementsByTagName('path')[0];
     24        element.style = test.property + ": url(" + url_prefix + "svg.py?id=" +
     25                        test.id + "#invalidFragment);";
     26      }
     27 
     28      runSvgTests(svg_test_properties,
     29                  "Styling SVG from inline styles",
     30                  setInlineStyle);
     31    </script>
     32 
     33    <div id="log"></div>
     34  </body>
     35 </html>