4 <script type=
"text/javascript">
5 // Detect severe performance and memory issues when large amounts of errors
6 // are reported from CSS embedded in a file with a long data URI. Addressed
7 // by 786108; should finish quickly with that patch and run for a very long
8 // time otherwise. This version is designed for slow / memory constrained
9 // platforms like Android.
12 img
.push('<img src="data:image/svg+xml,');
13 img
.push(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300px" height="300px">'));
15 for (var i
= 0 ; i
< 2500 ; i
++)
16 img
.push(encodeURIComponent('<circle cx="0" cy="0" r="1" style="xxx-invalid-property: 0;"/>'));
18 img
.push(encodeURIComponent('</svg>'));
21 document
.getElementsByTagName('body')[0].innerHTML
= img
.join('');