summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/long-url-list-stack-overflow.html
blob: 899e858df566f8df23f8963890d4d4dc43b28c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<style id="s"></style>
<script type="text/javascript">

// Duplicates the string 2^n times
function exp(s, n)
{
  for (var i = 0; i < n; ++i)
    s += s;
  return s;
}

var stylesheet = "@-moz-document url(http://www.w3.org/)" + exp(", url-prefix(file:///)", 20) + " { }";
document.getElementById("s").textContent = stylesheet;

</script>
</head>
<body>
<div></div>
</body>
</html>