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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/backgrounds/attachment-local-positioning-4.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<!doctype html>
     1.5 +<title>CSS Test: background-attachment: local; positioning area with dir=rtl, top left</title>
     1.6 +<link rel="match" href="attachment-local-positioning-4-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 +  border: solid;
    1.13 +  /* With scrolling, effective position is -10px -10px */
    1.14 +  background: url(aqua-yellow-32x32.png) local no-repeat 0 0;
    1.15 +  overflow: hidden;
    1.16 +  width: 200px;
    1.17 +  height: 300px;
    1.18 +}
    1.19 +div div {
    1.20 +  width: 250px;
    1.21 +  height: 370px;
    1.22 +}
    1.23 +p {
    1.24 +  margin: 0;
    1.25 +  padding-top: 100px;
    1.26 +}
    1.27 +</style>
    1.28 +<div id=outer dir=rtl>
    1.29 +  <div>
    1.30 +    <p><img src=blue-32x32.png style="width: 160px"></p>
    1.31 +  </div>
    1.32 +</div>
    1.33 +<script>
    1.34 +var outer = document.getElementById('outer');
    1.35 +// See https://bugzilla.mozilla.org/show_bug.cgi?id=383026 for negative values.
    1.36 +outer.scrollLeft = -40;
    1.37 +outer.scrollTop = 10;
    1.38 +</script>

mercurial