785753-1.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 0.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Test for importing styles via incorrect link element</title>
  5. <link type="text/css" href="data:text/css;charset=utf-8,p#one%-32519279132875%7Bbackground-color%32769A%340282366920938463463374607431768211436red%1B%7D%0D%0A"/>
  6. <link rel="stylesheet" href="data:text/css;charset=utf-16,p#two%1%7Bbackground-color%65535A%4294967297lime%3B%7D%0D%0A"/>
  7. </head>
  8. <link href="data:text/css;charset=utf-8,p#three%1%7Bbackground-color%3A%20red%3B%7D%0D%0A"/>
  9. <link type="text/css" rel="stylesheet" href="data:text/css;charset=utf-8,p#four%32767%7Bbackground-color%2147483649A%20lime%257B%7D%0D%0A"/>
  10. </head>
  11. <body>
  12. <p id="one">This line should not have red background</p>
  13. <p id="two">This line should have lime background</p>
  14. <p id="three">This line should not have red background</p>
  15. <p id="four">This line should have lime background</p>
  16. </body>
  17. <script type="text/javascript">
  18. function alert(msg){}; function confirm(msg){}; function prompt(msg){};
  19. try{ document.head.appendChild(document.createElement("style"));}catch(e){}
  20. var styleSheet = document.styleSheets[document.styleSheets.length-1];
  21. try{if(styleSheet.length===undefined){styleSheet.insertRule(":root{}",0); styleSheet.disabled=false}
  22. styleSheet.insertRule("body {counter-reset:c}",0)}catch(e){}
  23. var styleSheet0 = document.styleSheets[0];
  24. var styleSheet1 = document.styleSheets[1];
  25. var styleSheet2 = document.styleSheets[2];
  26. var test0=document.getElementById("four")
  27. var test1=document.getElementById("one")
  28. var test2=document.getElementById("two")
  29. var test3=document.getElementById("three")
  30. setTimeout(function(){
  31. try{test0.style['padding-top']='32px';}catch(e){}
  32. try{test2.insertBefore(test3);}catch(e){}
  33. try{test0.style.setProperty('background-image','url(data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcppV0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7)','important');}catch(e){}
  34. try{test3.style['line-height']='-324px';}catch(e){}
  35. try{test0.style.setProperty('border-image-repeat','repeat','important');}catch(e){}
  36. },3);
  37. setTimeout(function(){
  38. try{test1.style['line-height']='43px';}catch(e){}
  39. try{styleSheet0.insertRule(".undefined,.undefined{clear:right; }",styleSheet0.cssRules.length);}catch(e){}
  40. try{test2.style.setProperty('bottom','inherit','important');}catch(e){}
  41. try{test3.parentNode.removeChild(test3)}catch(e){};
  42. try{test0.style.setProperty('overflow-x','no-content','important');}catch(e){}
  43. },0);
  44. setTimeout(function(){
  45. try{styleSheet0.insertRule(".undefined,.undefined{font-size:40px; overflow-x:no-content; -moz-transition-duration:-5.408991568721831s; -moz-column-span:483; }",styleSheet0.cssRules.length);}catch(e){}
  46. try{test0.parentNode.removeChild(test0)}catch(e){};
  47. try{test0.insertBefore(test2);}catch(e){}
  48. try{test3.style.setProperty('bottom','inherit','important');}catch(e){}
  49. try{test2.style.setProperty('background-origin','border-box','important');}catch(e){}
  50. },2);
  51. setTimeout(function(){
  52. window.resizeTo(1018,353)
  53. try{test0.insertBefore(test1);}catch(e){}
  54. try{test1.style.setProperty('bottom','auto','important');}catch(e){}
  55. try{test1.style.setProperty('z-index','inherit','important');}catch(e){}
  56. window.resizeTo(1018,353)
  57. },1);
  58. setTimeout(function(){
  59. try{test0.innerHtml=test3.innerHtml;}catch(e){}
  60. document.body.style.setProperty('-webkit-filter','blur(18px)','null')
  61. try{test3.parentNode.removeChild(test3)}catch(e){};
  62. try{test0.style.setProperty('padding-right','18px','important');}catch(e){}
  63. try{test3.style.setProperty('border-bottom-color','rgb(96%,328%,106)','important');}catch(e){}
  64. },4);
  65. setTimeout(function(){
  66. try{test2.innerHtml=test0.innerHtml;}catch(e){}
  67. try{styleSheet1.insertRule(".undefined,.undefined{list-style-type:sidama; background-clip:border-box; overflow-x:scroll; border-bottom-left-radius:70px; text-transform:uppercase; empty-cells:inherit; }",styleSheet1.cssRules.length);}catch(e){}
  68. try{styleSheet1.insertRule(".undefined:active {min-width:759; }",styleSheet1.cssRules.length);}catch(e){}
  69. try{test1.style.setProperty('top','343','important');}catch(e){}
  70. try{test2.replaceChild(test0,test2.firstChild)}catch(e){}
  71. },4);
  72. setTimeout(function(){
  73. try{styleSheet1.insertRule(".undefined,.undefined,.undefined,.undefined{background-attachment:inherit; flood-color:rgba(93%,364%,104,4.471563883125782); }",0);}catch(e){}
  74. try{test1.style.setProperty('font-style','oblique','important');}catch(e){}
  75. try{styleSheet0.insertRule(".undefined,.undefined,.undefined{border-right-style:double; }",styleSheet0.cssRules.length);}catch(e){}
  76. document.execCommand("SelectAll", true);
  77. try{test3.parentNode.removeChild(test3)}catch(e){};
  78. },1);
  79. setTimeout(function(){
  80. try{test1.parentNode.removeChild(test1)}catch(e){};
  81. try{test0.innerHtml=test2.innerHtml;}catch(e){}
  82. try{test1.parentNode.removeChild(test1)}catch(e){};
  83. try{test0.parentNode.removeChild(test0)}catch(e){};
  84. try{test2.innerHtml=test2.innerHtml;}catch(e){}
  85. },4);
  86. setTimeout(function(){
  87. try{test0.appendChild(test1);}catch(e){}
  88. try{test1.style['position']='inherit';}catch(e){}
  89. try{test2.replaceChild(test3,test2.lastChild)}catch(e){}
  90. try{test1.style['border-left-color']='#6D8997';}catch(e){}
  91. try{test1.innerHtml=test3.innerHtml;}catch(e){}
  92. },6);
  93. setTimeout(function(){
  94. try{test2.insertBefore(test1);}catch(e){}
  95. try{test2.innerHtml=test3.innerHtml;}catch(e){}
  96. try{test0.appendChild(test2);}catch(e){}
  97. try{styleSheet0.insertRule(".undefined,.undefined{resize:both; background-color:#A22225; position:relative; -moz-column-width:auto; letter-spacing:361px; border-top-width:151%; }",styleSheet0.cssRules.length);}catch(e){}
  98. document.body.style.zoom=1.8764980849809945
  99. },6);
  100. setTimeout(function(){
  101. try{styleSheet1.insertRule(".undefined,.undefined,.undefined{outline-color:rgba(126,179,46,0.8964905887842178); width:183; }",styleSheet1.cssRules.length);}catch(e){}
  102. try{test2.insertBefore(test3);}catch(e){}
  103. try{test1.innerHtml=test3.innerHtml;}catch(e){}
  104. try{styleSheet0.insertRule("article,footer,article,article{border-bottom-right-radius:7px; }",0);}catch(e){}
  105. try{test1.insertBefore(test0);}catch(e){}
  106. },4);
  107. setTimeout(function(){
  108. try{test0.parentNode.removeChild(test0)}catch(e){};
  109. try{styleSheet1.insertRule(".undefined,.undefined,.undefined,.undefined{display: table-header-group; content: counter(c, ethiopic); counter-increment:c;}",0);}catch(e){}
  110. try{test0.style.setProperty('background-color','#8897D3','important');}catch(e){}
  111. try{test3.appendChild(test0);}catch(e){}
  112. try{styleSheet0.insertRule("hgroup,hgroup,hgroup{outline-color:rgba(167,242,90%,-0.10827295063063502); }",styleSheet0.cssRules.length);}catch(e){}
  113. },4);
  114. setTimeout(function(){
  115. try{test3.style.setProperty('border-bottom-color','#55D7F6','important');}catch(e){}
  116. try{test1.parentNode.removeChild(test1)}catch(e){};
  117. try{test2.insertBefore(test1);}catch(e){}
  118. try{test2.innerHtml=test0.innerHtml;}catch(e){}
  119. try{styleSheet1.insertRule("#one,#one,#three,#three{background-clip:border-box; border-top-width:85em; }",0);}catch(e){}
  120. },5);
  121. setTimeout(function(){
  122. try{test3.appendChild(test0);}catch(e){}
  123. try{test2.innerHtml=test1.innerHtml;}catch(e){}
  124. try{test2.style['background-attachment']='inherit';}catch(e){}
  125. try{test3.style['clip']='inherit';}catch(e){}
  126. try{test3.parentNode.removeChild(test3)}catch(e){};
  127. },3);
  128. setTimeout(function(){
  129. try{test1.parentNode.removeChild(test1)}catch(e){};
  130. try{styleSheet0.insertRule(".undefined,.undefined{height:424; }",styleSheet0.cssRules.length);}catch(e){}
  131. try{test2.style.setProperty('border-top-style','solid','important');}catch(e){}
  132. try{styleSheet0.insertRule(".undefined,.undefined,.undefined,.undefined{page-break-inside:left; border-image-slice:fill; border-left-width:184pc; }",styleSheet0.cssRules.length);}catch(e){}
  133. try{styleSheet0.insertRule(".undefined,.undefined{margin-left:-105px; text-transform:inherit; box-sizing:border-box; }",styleSheet0.cssRules.length);}catch(e){}
  134. },4);
  135. setTimeout(function(){
  136. try{styleSheet0.insertRule("param,img,img,param{left:auto; background-clip:padding-box; }",styleSheet0.cssRules.length);}catch(e){}
  137. try{test2.style.setProperty('min-height','605','important');}catch(e){}
  138. try{test2.parentNode.removeChild(test2)}catch(e){};
  139. try{styleSheet1.insertRule(".undefined::first-line, #two::first-line {border-bottom-width:69pt; lighting-color:rgba(75%,166,81,-0.8728196211159229); text-shadow:85px 459px #2F1; }",styleSheet1.cssRules.length);}catch(e){}
  140. try{test3.appendChild(document.createTextNode(unescape("!F幓[")))}catch(e){}
  141. },4);
  142. setTimeout(function(){
  143. try{styleSheet0.insertRule("#two,#four{font-style:italic; list-style-position:inside; border-collapse:inherit; word-wrap:break-word; text-transform:uppercase; }",styleSheet0.cssRules.length);}catch(e){}
  144. try{test1.style.setProperty('border-bottom-right-radius','2px','important');}catch(e){}
  145. try{test3.style['text-shadow']='58px 64px rgba(61%,60,199,0.03203143551945686)';}catch(e){}
  146. try{styleSheet1.insertRule("dir,dir,nav{display: inline-table; content: counter(c, upper-greek); counter-increment:c;}",styleSheet1.cssRules.length);}catch(e){}
  147. try{styleSheet0.insertRule("#one:target, #three:after {color:#D9B; outline-style:hidden; flood-color:rgba(22,59%,99%,-0.008097740123048425); }",0);}catch(e){}
  148. },6);
  149. setTimeout(function(){
  150. try{test2.parentNode.removeChild(test2)}catch(e){};
  151. document.execCommand("Copy", true);
  152. try{test3.style['letter-spacing']='102px';}catch(e){}
  153. try{test2.parentNode.removeChild(test2)}catch(e){};
  154. try{test3.appendChild(test0);}catch(e){}
  155. },5);
  156. setTimeout(function(){
  157. try{test0.style['text-transform']='inherit';}catch(e){}
  158. try{test0.style['word-break']='hyphenate';}catch(e){}
  159. try{test3.insertBefore(test2);}catch(e){}
  160. try{test2.style.setProperty('bottom','410','important');}catch(e){}
  161. try{test1.style['background']='url(data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcppV0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7)';}catch(e){}
  162. },5);
  163. setTimeout(function(){
  164. try{test2.appendChild(test2);}catch(e){}
  165. try{test1.appendChild(test2);}catch(e){}
  166. try{test2.appendChild(document.createTextNode(unescape("zn!쎔gw눢fb¤£kꄍ£3wa02fnpå0!äwC䰴頥!!a")))}catch(e){}
  167. try{styleSheet0.insertRule(".undefined,.undefined,.undefined{display: inline; content: counter(c, khmer); counter-increment:c;}",0);}catch(e){}
  168. try{test3.style.setProperty('line-height','42in','important');}catch(e){}
  169. },7);
  170. setTimeout(function(){
  171. window.moveBy(133,126)
  172. try{test0.style['padding-right']='20px';}catch(e){}
  173. try{test1.replaceChild(test2,test1.firstChild)}catch(e){}
  174. try{test1.style.setProperty('letter-spacing','120px','important');}catch(e){}
  175. try{test1.style.setProperty('height','57','important');}catch(e){}
  176. },4);
  177. setTimeout(function(){
  178. try{styleSheet1.insertRule(".undefined:nth-child(even), #one:nth-last-child(even) {margin-top:-241cm; font-size:23px; }",0);}catch(e){}
  179. try{styleSheet0.insertRule(".undefined:nth-child(even), #three:default {stop-color:rgba(92%,-201%,31,0.8133529485203326); lighting-color:#E31; }",styleSheet0.cssRules.length);}catch(e){}
  180. try{test1.style.setProperty('border-top-left-radius','63px','important');}catch(e){}
  181. try{test0.style['letter-spacing']='36px';}catch(e){}
  182. try{test1.appendChild(document.createTextNode(unescape("1u£Fⶵ隗(籬fsä⍉㯗cሮ銐k䆴n#蹹圭篺(1w馁")))}catch(e){}
  183. },7);
  184. setTimeout(function(){
  185. try{test1.appendChild(test3);}catch(e){}
  186. try{test2.style.setProperty('lighting-color','rgb(4,36%,95%)','important');}catch(e){}
  187. try{test0.style.setProperty('border-right-width','71pt','important');}catch(e){}
  188. try{test2.style['box-shadow']='-228px , 86px , 9px , #F0A134';}catch(e){}
  189. try{styleSheet0.insertRule(".undefined,.undefined,.undefined{left:inherit; }",styleSheet0.cssRules.length);}catch(e){}
  190. },7);
  191. setTimeout(function(){
  192. try{styleSheet1.insertRule(".undefined,.undefined,.undefined,.undefined{min-height:277; -moz-transition-property:none; }",0);}catch(e){}
  193. try{test0.style.setProperty('word-wrap','break-word','important');}catch(e){}
  194. try{test1.style.setProperty('top','inherit','important');}catch(e){}
  195. try{styleSheet0.insertRule(".undefined,.undefined,.undefined{overflow-x:visible; border-bottom-left-radius:844488.660965659px; }",0);}catch(e){}
  196. try{test2.style.setProperty('margin-bottom','auto','important');}catch(e){}
  197. },0);
  198. setTimeout(function(){
  199. try{styleSheet1.insertRule("hgroup,hgroup,dl,dl{display: list-item; content: counter(c, hebrew); counter-increment:c;}",styleSheet1.cssRules.length);}catch(e){}
  200. try{test0.style.setProperty('border-image-repeat','repeat','important');}catch(e){}
  201. try{styleSheet0.insertRule("figure,footer,figure,table{-moz-border-image-repeat:stretch; word-wrap:normal; border-right-color:rgb(4%,19%,6%); caption-side:top; stop-color:rgba(450%,226,14%,1.5385327017866075); }",styleSheet0.cssRules.length);}catch(e){}
  202. try{test3.innerHtml=test2.innerHtml;}catch(e){}
  203. try{test2.appendChild(test0);}catch(e){}
  204. },0);
  205. setTimeout(function(){
  206. try{test1.replaceChild(test0,test1.lastChild)}catch(e){}
  207. try{test2.style.setProperty('border-collapse','inherit','important');}catch(e){}
  208. try{test1.style['overflow-x']='visible';}catch(e){}
  209. try{test1.style['text-indent']='-30.283706605434418cm';}catch(e){}
  210. try{styleSheet0.insertRule("tt,hgroup{stroke-width:-439px; box-sizing:border-box; }",styleSheet0.cssRules.length);}catch(e){}
  211. },1);
  212. setTimeout(function(){
  213. styleSheet0.disabled=true
  214. styleSheet1.disabled=false
  215. styleSheet1.disabled=true
  216. document.body.style.setProperty('-webkit-filter','invert(338%)','null')
  217. window.moveBy(302,115)
  218. },0);
  219. setTimeout(function(){
  220. window.blur()
  221. },4);
  222. </script>
  223. </html>