layout/reftests/css-blending/background-blending-background-attachement-fixed-scroll.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!-- Blend two background images having background-attachment: fixed and scroll respectively -->
michael@0 2 <!DOCTYPE HTML>
michael@0 3 <html>
michael@0 4 <head>
michael@0 5 <style>
michael@0 6 #parent {
michael@0 7 width: 200px;
michael@0 8 height: 200px;
michael@0 9 overflow: hidden;
michael@0 10 }
michael@0 11
michael@0 12 #child {
michael@0 13 background: url('as-image/green100x100.png'), url('as-image/green100x100.png');
michael@0 14 background-attachment: fixed, scroll;
michael@0 15 background-size: 100px 100px, 200px 200px;
michael@0 16 background-repeat: no-repeat no-repeat;
michael@0 17 background-blend-mode: difference;
michael@0 18
michael@0 19 height: 400px;
michael@0 20 }
michael@0 21
michael@0 22 body {
michael@0 23 margin: 0px;
michael@0 24 }
michael@0 25 </style>
michael@0 26 <script>
michael@0 27 function onLoad() {
michael@0 28 var parent = document.getElementById("parent");
michael@0 29 parent.scrollTop = 100;
michael@0 30 }
michael@0 31 </script>
michael@0 32 </head>
michael@0 33
michael@0 34 <body onload="onLoad()">
michael@0 35 <div id="parent">
michael@0 36 <div id="child">
michael@0 37 </div>
michael@0 38 </div>
michael@0 39 </body>
michael@0 40 </html>

mercurial