attachment-local-positioning-3

background-attachment: local; positioning area with dir=rtl

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
dom

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Test: background-attachment: local; positioning area with dir=rtl</title>
 3 <link href="reference/attachment-local-positioning-3-ref.htm" rel="match">
 4 <meta content="dom" name="flags">
 5 <link href="http://exyr.org/about/" rel="author" title="Simon Sapin">
 6 <link href="http://www.w3.org/TR/css3-background/#the-background-attachment" rel="help">
 7 <style>
 8 #outer {
 9   border: solid;
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%;
13   overflow: hidden;
14   width: 200px;
15   height: 300px;
16 }
17 div div {
18   width: 250px;
19   height: 370px;
20 }
21 p {
22   margin: 0;
23   padding-top: 100px;
24 }
25 </style>
26 </head><body><div id="outer" dir="rtl">
27   <div>
28     <p>Lorem ipsum dolor sit amet</p>
29   </div>
30 </div>
31 <script>
32 var outer = document.getElementById('outer');
33 // See https://bugzilla.mozilla.org/show_bug.cgi?id=383026 for negative values.
34 outer.scrollLeft = -10;
35 outer.scrollTop = 60;
36 </script>
37 </body></html>