1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/985303-1a.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<style> 1.8 +#container { 1.9 + position: absolute; 1.10 + width: 200px; 1.11 + height: 200px; 1.12 + overflow: scroll; 1.13 +} 1.14 +#image { 1.15 + width: 100px; 1.16 + height: 100px; 1.17 + margin: 100px; 1.18 + background: blue; 1.19 + display: inline-block; 1.20 +} 1.21 +#cursor { 1.22 + position: absolute; 1.23 + left: 0; 1.24 + top: 0; 1.25 + width: 10px; 1.26 + height: 10px; 1.27 + background: red; 1.28 +} 1.29 +</style> 1.30 +</head> 1.31 +<body> 1.32 +<div id='container'> 1.33 + <div id='image'></div> 1.34 + <div id='cursor'></div> 1.35 +</div> 1.36 +</body> 1.37 +<script> 1.38 +var x = image.getBoundingClientRect(); 1.39 +cursor.style.left = '10px'; 1.40 +</script> 1.41 +</html>