processing-instruction.html (1517B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS integration - styling SVG from external stylesheet via 5 ProcessingInstruction</title> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="/common/utils.js"></script> 9 <!-- Common global functions for referrer-policy tests. --> 10 <script src="/common/security-features/resources/common.sub.js"></script> 11 <!-- Helper functions for referrer-policy css tests. --> 12 <script src="/referrer-policy/css-integration/css-test-helper.js"></script> 13 <meta name="referrer" content="origin"> 14 </head> 15 <body> 16 <p>Check that resources from external stylesheets (referenced from a 17 ProcessingInstruction) are loaded with the referrer and referrer policy 18 from the external stylesheet.</p> 19 <script> 20 function addProcessingInstruction(test) { 21 let svg_url = url_prefix + "svg.py?id=" + test.id + "&type=svg" + 22 "&property=" + test.property + "&embedded-svg"; 23 let iframe = document.createElement("iframe"); 24 test.expected = url_prefix + "stylesheet.py?id=" + test.id + 25 "&type=svg" + "&property=" + test.property; 26 iframe.src = svg_url; 27 document.body.appendChild(iframe); 28 } 29 30 runSvgTests(svg_test_properties, 31 "Styling SVG from ProcessingInstruction", 32 addProcessingInstruction); 33 </script> 34 35 <div id="log"></div> 36 </body> 37 </html>