Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>glyph clipping (test)</title> |
michael@0 | 5 | <style> |
michael@0 | 6 | #clip { position: absolute; |
michael@0 | 7 | overflow: hidden; |
michael@0 | 8 | font-size: 16px; |
michael@0 | 9 | width: 500px; |
michael@0 | 10 | height: 300px;} |
michael@0 | 11 | /* Offsets keep the text far enough away from clip boundaries so that |
michael@0 | 12 | cairo knows the text is within the clip. Non-unit alpha color makes |
michael@0 | 13 | the bug show even without antialiasing. */ |
michael@0 | 14 | #text { position: absolute; |
michael@0 | 15 | left: 100px; |
michael@0 | 16 | top: 100px; |
michael@0 | 17 | color: rgba(0,0,0,0.4)} |
michael@0 | 18 | #cover { position: absolute; |
michael@0 | 19 | top: 90px; |
michael@0 | 20 | left: 120px; |
michael@0 | 21 | height: 50px; |
michael@0 | 22 | width: 60px; |
michael@0 | 23 | background: green; } |
michael@0 | 24 | #mod { position: absolute; |
michael@0 | 25 | top: 400px; |
michael@0 | 26 | left: 0px; |
michael@0 | 27 | height: 2000px; |
michael@0 | 28 | width: 600px; |
michael@0 | 29 | background: green; } |
michael@0 | 30 | </style> |
michael@0 | 31 | <script> |
michael@0 | 32 | |
michael@0 | 33 | function doPaint() |
michael@0 | 34 | { |
michael@0 | 35 | window.addEventListener("MozAfterPaint", doScroll, false); |
michael@0 | 36 | var cover = document.getElementById("cover"); |
michael@0 | 37 | cover.style.background = "transparent"; |
michael@0 | 38 | var mod = document.getElementById("mod"); |
michael@0 | 39 | mod.style.background = "transparent"; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | function doScroll() |
michael@0 | 43 | { |
michael@0 | 44 | window.removeEventListener("MozAfterPaint", doScroll, false); |
michael@0 | 45 | window.addEventListener("MozAfterPaint", endTest, false); |
michael@0 | 46 | scrollTo(0,1); |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | function endTest() |
michael@0 | 50 | { |
michael@0 | 51 | document.documentElement.removeAttribute("class"); |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | document.addEventListener("MozReftestInvalidate", doPaint, false); |
michael@0 | 55 | </script> |
michael@0 | 56 | </head> |
michael@0 | 57 | <body> |
michael@0 | 58 | <div id="clip"> |
michael@0 | 59 | <div id="text"> |
michael@0 | 60 | Some text that was</br> |
michael@0 | 61 | initially partially covered.</br> |
michael@0 | 62 | </div> |
michael@0 | 63 | </div> |
michael@0 | 64 | <div id="cover"> |
michael@0 | 65 | </div> |
michael@0 | 66 | <div id="mod"> |
michael@0 | 67 | </div> |
michael@0 | 68 | </body> |
michael@0 | 69 | </html> |