| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .fixed { | 6 .fixed { |
| 7 position: fixed; | 7 position: fixed; |
| 8 width: 10px; | 8 width: 10px; |
| 9 height: 10px; | 9 height: 10px; |
| 10 top: -100px; | 10 top: -100px; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 document.body.offsetHeight; | 24 document.body.offsetHeight; |
| 25 fixed.className = "fixed"; | 25 fixed.className = "fixed"; |
| 26 var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(do
cument); | 26 var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(do
cument); |
| 27 document.getElementById("result").innerText = !mainThreadScrollingReason
s ? "PASS" : "FAIL: " + mainThreadScrollingReasons; | 27 document.getElementById("result").innerText = !mainThreadScrollingReason
s ? "PASS" : "FAIL: " + mainThreadScrollingReasons; |
| 28 testRunner.notifyDone(); | 28 testRunner.notifyDone(); |
| 29 }, false); | 29 }, false); |
| 30 } | 30 } |
| 31 </script> | 31 </script> |
| 32 </head> | 32 </head> |
| 33 | 33 |
| 34 <body> | 34 <!-- Fixed position elements may skip compositing without a scrollable |
| 35 ancestor. To make sure this test covers the intended scenario, we have to force |
| 36 something (like the FrameView) to be scrolling, i.e. make a tall body element. -
-> |
| 37 <body style="height: 4000px;"> |
| 35 <pre id="result"></pre> | 38 <pre id="result"></pre> |
| 36 </body> | 39 </body> |
| 37 </html> | 40 </html> |
| 38 | 41 |
| OLD | NEW |