layout/reftests/backgrounds/attachment-local-positioning-1.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!doctype html>
     2 <title>background-attachment: scroll</title>
     3 <style>
     4 div {
     5   background: url(aqua-yellow-32x32.png) no-repeat 100px 100px;
     6   overflow: hidden;
     7   height: 200px;
     8 }
     9 p {
    10   padding-top: 100px;
    11   height: 500px;
    12 }
    13 </style>
    14 <div>
    15   <p><img src=blue-32x32.png></p>
    16 </div>
    17 <script>
    18 document.getElementsByTagName('div')[0].scrollTop = 60;
    19 </script>

mercurial