test_cssBefore1.html (915B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>CSS :before 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 <style type="text/css"> 9 p:before 10 { 11 content: url(http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg); 12 } 13 </style> 14 15 <script class="testbody" type="text/javascript"> 16 "use strict"; 17 18 async function runTest() 19 { 20 await isSecurityState("broken", "insecure content added by :before styling breaks security"); 21 finish(); 22 } 23 24 async function afterNavigationTest() 25 { 26 await isSecurityState("broken", "security still broken after navigation", todo); 27 finish(); 28 } 29 30 </script> 31 </head> 32 33 <body> 34 <p> 35 There is a moon surface left to this text 36 </p> 37 </body> 38 </html>