785753-1.html (13527B)
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 23 styleSheet.insertRule("body {counter-reset:c}",0)}catch(e){} 24 var styleSheet0 = document.styleSheets[0]; 25 var styleSheet1 = document.styleSheets[1]; 26 var styleSheet2 = document.styleSheets[2]; 27 var test0=document.getElementById("four") 28 var test1=document.getElementById("one") 29 var test2=document.getElementById("two") 30 var test3=document.getElementById("three") 31 setTimeout(function(){ 32 try{test0.style['padding-top']='32px';}catch(e){} 33 try{test2.insertBefore(test3);}catch(e){} 34 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){} 35 try{test3.style['line-height']='-324px';}catch(e){} 36 try{test0.style.setProperty('border-image-repeat','repeat','important');}catch(e){} 37 },3); 38 39 setTimeout(function(){ 40 try{test1.style['line-height']='43px';}catch(e){} 41 try{styleSheet0.insertRule(".undefined,.undefined{clear:right; }",styleSheet0.cssRules.length);}catch(e){} 42 try{test2.style.setProperty('bottom','inherit','important');}catch(e){} 43 try{test3.remove()}catch(e){}; 44 try{test0.style.setProperty('overflow-x','no-content','important');}catch(e){} 45 },0); 46 47 setTimeout(function(){ 48 try{styleSheet0.insertRule(".undefined,.undefined{font-size:40px; overflow-x:no-content; transition-duration:-5.408991568721831s; column-span:483; }",styleSheet0.cssRules.length);}catch(e){} 49 try{test0.remove()}catch(e){}; 50 try{test0.insertBefore(test2);}catch(e){} 51 try{test3.style.setProperty('bottom','inherit','important');}catch(e){} 52 try{test2.style.setProperty('background-origin','border-box','important');}catch(e){} 53 },2); 54 55 setTimeout(function(){ 56 window.resizeTo(1018,353) 57 try{test0.insertBefore(test1);}catch(e){} 58 try{test1.style.setProperty('bottom','auto','important');}catch(e){} 59 try{test1.style.setProperty('z-index','inherit','important');}catch(e){} 60 window.resizeTo(1018,353) 61 },1); 62 63 setTimeout(function(){ 64 try{test0.innerHtml=test3.innerHtml;}catch(e){} 65 document.body.style.setProperty('-webkit-filter','blur(18px)','null') 66 try{test3.remove()}catch(e){}; 67 try{test0.style.setProperty('padding-right','18px','important');}catch(e){} 68 try{test3.style.setProperty('border-bottom-color','rgb(96%,328%,106)','important');}catch(e){} 69 },4); 70 71 setTimeout(function(){ 72 try{test2.innerHtml=test0.innerHtml;}catch(e){} 73 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){} 74 try{styleSheet1.insertRule(".undefined:active {min-width:759; }",styleSheet1.cssRules.length);}catch(e){} 75 try{test1.style.setProperty('top','343','important');}catch(e){} 76 try{test2.replaceChild(test0,test2.firstChild)}catch(e){} 77 },4); 78 79 setTimeout(function(){ 80 try{styleSheet1.insertRule(".undefined,.undefined,.undefined,.undefined{background-attachment:inherit; flood-color:rgba(93%,364%,104,4.471563883125782); }",0);}catch(e){} 81 try{test1.style.setProperty('font-style','oblique','important');}catch(e){} 82 try{styleSheet0.insertRule(".undefined,.undefined,.undefined{border-right-style:double; }",styleSheet0.cssRules.length);}catch(e){} 83 document.execCommand("SelectAll", true); 84 try{test3.remove()}catch(e){}; 85 },1); 86 87 setTimeout(function(){ 88 try{test1.remove()}catch(e){}; 89 try{test0.innerHtml=test2.innerHtml;}catch(e){} 90 try{test1.remove()}catch(e){}; 91 try{test0.remove()}catch(e){}; 92 try{test2.innerHtml=test2.innerHtml;}catch(e){} 93 },4); 94 95 setTimeout(function(){ 96 try{test0.appendChild(test1);}catch(e){} 97 try{test1.style['position']='inherit';}catch(e){} 98 try{test2.replaceChild(test3,test2.lastChild)}catch(e){} 99 try{test1.style['border-left-color']='#6D8997';}catch(e){} 100 try{test1.innerHtml=test3.innerHtml;}catch(e){} 101 },6); 102 103 setTimeout(function(){ 104 try{test2.insertBefore(test1);}catch(e){} 105 try{test2.innerHtml=test3.innerHtml;}catch(e){} 106 try{test0.appendChild(test2);}catch(e){} 107 try{styleSheet0.insertRule(".undefined,.undefined{resize:both; background-color:#A22225; position:relative; column-width:auto; letter-spacing:361px; border-top-width:151%; }",styleSheet0.cssRules.length);}catch(e){} 108 document.body.style.zoom=1.8764980849809945 109 },6); 110 111 setTimeout(function(){ 112 try{styleSheet1.insertRule(".undefined,.undefined,.undefined{outline-color:rgba(126,179,46,0.8964905887842178); width:183; }",styleSheet1.cssRules.length);}catch(e){} 113 try{test2.insertBefore(test3);}catch(e){} 114 try{test1.innerHtml=test3.innerHtml;}catch(e){} 115 try{styleSheet0.insertRule("article,footer,article,article{border-bottom-right-radius:7px; }",0);}catch(e){} 116 try{test1.insertBefore(test0);}catch(e){} 117 },4); 118 119 setTimeout(function(){ 120 try{test0.remove()}catch(e){}; 121 try{styleSheet1.insertRule(".undefined,.undefined,.undefined,.undefined{display: table-header-group; content: counter(c, ethiopic); counter-increment:c;}",0);}catch(e){} 122 try{test0.style.setProperty('background-color','#8897D3','important');}catch(e){} 123 try{test3.appendChild(test0);}catch(e){} 124 try{styleSheet0.insertRule("hgroup,hgroup,hgroup{outline-color:rgba(167,242,90%,-0.10827295063063502); }",styleSheet0.cssRules.length);}catch(e){} 125 },4); 126 127 setTimeout(function(){ 128 try{test3.style.setProperty('border-bottom-color','#55D7F6','important');}catch(e){} 129 try{test1.remove()}catch(e){}; 130 try{test2.insertBefore(test1);}catch(e){} 131 try{test2.innerHtml=test0.innerHtml;}catch(e){} 132 try{styleSheet1.insertRule("#one,#one,#three,#three{background-clip:border-box; border-top-width:85em; }",0);}catch(e){} 133 },5); 134 135 setTimeout(function(){ 136 try{test3.appendChild(test0);}catch(e){} 137 try{test2.innerHtml=test1.innerHtml;}catch(e){} 138 try{test2.style['background-attachment']='inherit';}catch(e){} 139 try{test3.style['clip']='inherit';}catch(e){} 140 try{test3.remove()}catch(e){}; 141 },3); 142 143 setTimeout(function(){ 144 try{test1.remove()}catch(e){}; 145 try{styleSheet0.insertRule(".undefined,.undefined{height:424; }",styleSheet0.cssRules.length);}catch(e){} 146 try{test2.style.setProperty('border-top-style','solid','important');}catch(e){} 147 try{styleSheet0.insertRule(".undefined,.undefined,.undefined,.undefined{page-break-inside:left; border-image-slice:fill; border-left-width:184pc; }",styleSheet0.cssRules.length);}catch(e){} 148 try{styleSheet0.insertRule(".undefined,.undefined{margin-left:-105px; text-transform:inherit; box-sizing:border-box; }",styleSheet0.cssRules.length);}catch(e){} 149 },4); 150 151 setTimeout(function(){ 152 try{styleSheet0.insertRule("param,img,img,param{left:auto; background-clip:padding-box; }",styleSheet0.cssRules.length);}catch(e){} 153 try{test2.style.setProperty('min-height','605','important');}catch(e){} 154 try{test2.remove()}catch(e){}; 155 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){} 156 try{test3.appendChild(document.createTextNode(unescape("!F幓[")))}catch(e){} 157 },4); 158 159 setTimeout(function(){ 160 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){} 161 try{test1.style.setProperty('border-bottom-right-radius','2px','important');}catch(e){} 162 try{test3.style['text-shadow']='58px 64px rgba(61%,60,199,0.03203143551945686)';}catch(e){} 163 try{styleSheet1.insertRule("dir,dir,nav{display: inline-table; content: counter(c, upper-greek); counter-increment:c;}",styleSheet1.cssRules.length);}catch(e){} 164 try{styleSheet0.insertRule("#one:target, #three:after {color:#D9B; outline-style:hidden; flood-color:rgba(22,59%,99%,-0.008097740123048425); }",0);}catch(e){} 165 },6); 166 167 setTimeout(function(){ 168 try{test2.remove()}catch(e){}; 169 document.execCommand("Copy", true); 170 try{test3.style['letter-spacing']='102px';}catch(e){} 171 try{test2.remove()}catch(e){}; 172 try{test3.appendChild(test0);}catch(e){} 173 },5); 174 175 setTimeout(function(){ 176 try{test0.style['text-transform']='inherit';}catch(e){} 177 try{test0.style['word-break']='hyphenate';}catch(e){} 178 try{test3.insertBefore(test2);}catch(e){} 179 try{test2.style.setProperty('bottom','410','important');}catch(e){} 180 try{test1.style['background']='url(data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcppV0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7)';}catch(e){} 181 },5); 182 183 setTimeout(function(){ 184 try{test2.appendChild(test2);}catch(e){} 185 try{test1.appendChild(test2);}catch(e){} 186 try{test2.appendChild(document.createTextNode(unescape("zn!쎔gw눢fb¤£kꄍ£3wa02fnpå0!äwC䰴頥!!a")))}catch(e){} 187 try{styleSheet0.insertRule(".undefined,.undefined,.undefined{display: inline; content: counter(c, khmer); counter-increment:c;}",0);}catch(e){} 188 try{test3.style.setProperty('line-height','42in','important');}catch(e){} 189 },7); 190 191 setTimeout(function(){ 192 window.moveBy(133,126) 193 try{test0.style['padding-right']='20px';}catch(e){} 194 try{test1.replaceChild(test2,test1.firstChild)}catch(e){} 195 try{test1.style.setProperty('letter-spacing','120px','important');}catch(e){} 196 try{test1.style.setProperty('height','57','important');}catch(e){} 197 },4); 198 199 setTimeout(function(){ 200 try{styleSheet1.insertRule(".undefined:nth-child(even), #one:nth-last-child(even) {margin-top:-241cm; font-size:23px; }",0);}catch(e){} 201 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){} 202 try{test1.style.setProperty('border-top-left-radius','63px','important');}catch(e){} 203 try{test0.style['letter-spacing']='36px';}catch(e){} 204 try{test1.appendChild(document.createTextNode(unescape("1u£Fⶵ隗(籬fsä⍉㯗cሮ銐k䆴n#蹹圭篺(1w馁")))}catch(e){} 205 },7); 206 207 setTimeout(function(){ 208 try{test1.appendChild(test3);}catch(e){} 209 try{test2.style.setProperty('lighting-color','rgb(4,36%,95%)','important');}catch(e){} 210 try{test0.style.setProperty('border-right-width','71pt','important');}catch(e){} 211 try{test2.style['box-shadow']='-228px , 86px , 9px , #F0A134';}catch(e){} 212 try{styleSheet0.insertRule(".undefined,.undefined,.undefined{left:inherit; }",styleSheet0.cssRules.length);}catch(e){} 213 },7); 214 215 setTimeout(function(){ 216 try{styleSheet1.insertRule(".undefined,.undefined,.undefined,.undefined{min-height:277; transition-property:none; }",0);}catch(e){} 217 try{test0.style.setProperty('word-wrap','break-word','important');}catch(e){} 218 try{test1.style.setProperty('top','inherit','important');}catch(e){} 219 try{styleSheet0.insertRule(".undefined,.undefined,.undefined{overflow-x:visible; border-bottom-left-radius:844488.660965659px; }",0);}catch(e){} 220 try{test2.style.setProperty('margin-bottom','auto','important');}catch(e){} 221 },0); 222 223 setTimeout(function(){ 224 try{styleSheet1.insertRule("hgroup,hgroup,dl,dl{display: list-item; content: counter(c, hebrew); counter-increment:c;}",styleSheet1.cssRules.length);}catch(e){} 225 try{test0.style.setProperty('border-image-repeat','repeat','important');}catch(e){} 226 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){} 227 try{test3.innerHtml=test2.innerHtml;}catch(e){} 228 try{test2.appendChild(test0);}catch(e){} 229 },0); 230 231 setTimeout(function(){ 232 try{test1.replaceChild(test0,test1.lastChild)}catch(e){} 233 try{test2.style.setProperty('border-collapse','inherit','important');}catch(e){} 234 try{test1.style['overflow-x']='visible';}catch(e){} 235 try{test1.style['text-indent']='-30.283706605434418cm';}catch(e){} 236 try{styleSheet0.insertRule("tt,hgroup{stroke-width:-439px; box-sizing:border-box; }",styleSheet0.cssRules.length);}catch(e){} 237 },1); 238 239 setTimeout(function(){ 240 styleSheet0.disabled=true 241 styleSheet1.disabled=false 242 styleSheet1.disabled=true 243 document.body.style.setProperty('-webkit-filter','invert(338%)','null') 244 window.moveBy(302,115) 245 },0); 246 247 setTimeout(function(){ 248 window.blur() 249 },4); 250 251 </script> 252 253 </html>