| 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 12 matching lines...) Expand all Loading... |
| 23 document.body.appendChild(fixed); | 23 document.body.appendChild(fixed); |
| 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 }, false); | 28 }, false); |
| 29 } | 29 } |
| 30 </script> | 30 </script> |
| 31 </head> | 31 </head> |
| 32 | 32 |
| 33 <body> | 33 <!-- Fixed position elements may skip compositing without a scrollable |
| 34 ancestor. To make sure this test covers the intended scenario, we force the |
| 35 body element to be tall, so that the FrameView is scrolling. --> |
| 36 <body style="height: 4000px;"> |
| 34 <pre id="result"></pre> | 37 <pre id="result"></pre> |
| 35 </body> | 38 </body> |
| 36 </html> | 39 </html> |
| 37 | 40 |
| OLD | NEW |