1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/transform-3d/willchange-containing-block.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<body> 1.7 +<style> 1.8 +body { 1.9 + padding: 100px; 1.10 + width: 5000px; 1.11 + height: 5000px; 1.12 + overflow: scroll; 1.13 +} 1.14 +div { 1.15 +} 1.16 +#parent { 1.17 + background:red; 1.18 + width: 64px; 1.19 + height: 64px; 1.20 +} 1.21 +#child { 1.22 + background:green; 1.23 + position:fixed; 1.24 + width: 32px; 1.25 + height: 32px; 1.26 +} 1.27 +</style> 1.28 +<div id="parent"> 1.29 +<div id="child"> 1.30 + 1.31 +</div> 1.32 +</div> 1.33 +<script type="application/javascript"> 1.34 + 1.35 +if (document.location.search == '?willchange') { 1.36 + document.getElementById("parent").style.willChange = "transform"; 1.37 +} else if (document.location.search == '?ref') { 1.38 + document.getElementById("parent").style.transform = "translateZ(1px)"; 1.39 +} else if (document.location.search == '?noblock') { 1.40 +} 1.41 + 1.42 +document.documentElement.scrollTop = 10; 1.43 +document.documentElement.scrollLeft = 10; 1.44 +</script> 1.45 +</body> 1.46 +</html>