2 <title>CSS Test: background-attachment: local; positioning area with dir=rtl
</title>
3 <link rel=
"match" href=
"attachment-local-positioning-3-ref.html" />
4 <meta name=
"flags" content=
"dom" />
5 <link rel=
"author" title=
"Simon Sapin" href=
"http://exyr.org/about/" />
6 <link rel=
"help" href=
"http://www.w3.org/TR/css3-background/#the-background-attachment" />
10 /*
100%
100% == (
250px -
32px) (
370px -
32px) ==
218px
338px */
11 /* With scrolling, effective position is
178px
278px */
12 background: url(aqua-yellow-
32x32.png) local no-repeat
100%
100%;
26 <div id=outer dir=rtl
>
28 <p><img src=blue-
32x32.png
style=
"width: 160px"></p>
32 var outer
= document
.getElementById('outer');
33 // See https://bugzilla.mozilla.org/show_bug.cgi?id=383026 for negative values.
34 outer
.scrollLeft
= -10;