test_cssContent1.html (859B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>CSS conent styling 1</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <script type="text/javascript" src="mixedContentTest.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 8 9 <style type="text/css"> 10 p 11 { 12 content: url(http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg); 13 } 14 </style> 15 16 <script class="testbody" type="text/javascript"> 17 "use strict"; 18 19 async function runTest() 20 { 21 await isSecurityState("broken", "insecure content added by :before styling breaks security"); 22 finish(); 23 } 24 25 async function afterNavigationTest() 26 { 27 await isSecurityState("broken", "security still broken after navigation", todo); 28 finish(); 29 } 30 31 </script> 32 </head> 33 34 <body> 35 <p></p> 36 </body> 37 </html>