Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <!-- Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | - http://creativecommons.org/publicdomain/zero/1.0/ --> |
michael@0 | 4 | <html> |
michael@0 | 5 | <head> |
michael@0 | 6 | <title>CSS Test: Sticky Positioning - top+bottom, at middle</title> |
michael@0 | 7 | <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> |
michael@0 | 8 | <link rel="match" href="top-bottom-2-ref.html"> |
michael@0 | 9 | <meta name="flags" content="dom"> |
michael@0 | 10 | <meta name="assert" content="Top+bottom sticky, scrolled to the middle: should stay in its normal position"> |
michael@0 | 11 | <style> |
michael@0 | 12 | #scroll { |
michael@0 | 13 | height: 100px; |
michael@0 | 14 | overflow: hidden; |
michael@0 | 15 | } |
michael@0 | 16 | #sticky { |
michael@0 | 17 | position: sticky; |
michael@0 | 18 | top: 10px; |
michael@0 | 19 | bottom: 10px; |
michael@0 | 20 | height: 10px; |
michael@0 | 21 | background-color: black; |
michael@0 | 22 | } |
michael@0 | 23 | </style> |
michael@0 | 24 | </head> |
michael@0 | 25 | <body> |
michael@0 | 26 | <div id="scroll"> |
michael@0 | 27 | <div style="height: 100px"></div> |
michael@0 | 28 | <div id="sticky"></div> |
michael@0 | 29 | <div style="height: 100px"></div> |
michael@0 | 30 | </div> |
michael@0 | 31 | <script type="application/javascript"> |
michael@0 | 32 | document.getElementById("scroll").scrollTop = 50; |
michael@0 | 33 | </script> |
michael@0 | 34 | </body> |
michael@0 | 35 | </html> |