1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/backgrounds/attachment-local-clipping-image-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!doctype html> 1.5 +<title>CSS Test: background-{attachment: local; clip: border-box; image}</title> 1.6 +<link rel="match" href="attachment-local-clipping-image-1-ref.html" /> 1.7 +<meta name="flags" content="dom" /> 1.8 +<link rel="author" title="Simon Sapin" href="http://exyr.org/about/" /> 1.9 +<link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-attachment" /> 1.10 +<style> 1.11 +#outer { 1.12 + width: 200px; 1.13 + height: 200px; 1.14 + padding: 40px; 1.15 + border: 10px dashed; 1.16 + overflow: hidden; 1.17 + background: url(aqua-yellow-32x32.png) local; 1.18 + background-clip: border-box; 1.19 + background-origin: padding-box; /* Match the reference. */ 1.20 +} 1.21 +#outer div { 1.22 + height: 500px; 1.23 +} 1.24 +p { 1.25 + margin-top: 20px; 1.26 +} 1.27 +</style> 1.28 +<div id=outer> 1.29 + <div> 1.30 + <p><img src=blue-32x32.png></p> 1.31 + </div> 1.32 +</div> 1.33 +<script> 1.34 +document.getElementById('outer').scrollTop = 15; 1.35 +</script>