docshell/test/file_bug680257.html
author Justin Lebar <justin.lebar@gmail.com>
Mon, 22 Aug 2011 22:39:37 -0400
changeset 75697 ea8d99353056f8e67a22a04e79f9f8b656b950e2
child 439120 58adc643dcdc20eccb4d30bc454b50420e96c020
permissions -rw-r--r--
Bug 680257 - Always call nsDocShell::ScrollToAnchor on short-circuited loads, so as to make sure the target pseudo-class is updated correctly. r=bz

<!DOCTYPE HTML>
<html>
<head>
  <style type='text/css'>
    a        { color: black; }
    a:target { color: red; }
  </style>
</head>

<body onload='(opener || parent).popupLoaded()'>

<a id='a' href='#a'>link</a>
<a id='b' href='#b'>link2</a>

</body>
</html>