OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <style> | 2 <style> |
3 #scroller { | 3 #scroller { |
4 overflow: scroll; | 4 overflow: scroll; |
5 height: 300px; | 5 height: 300px; |
6 width: 300px; | 6 width: 300px; |
7 background-color: red; | 7 background-color: red; |
8 } | 8 } |
9 | 9 |
10 #outer { | 10 #outer { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 document.getElementById("outer").style.webkitClipPath = "polygon(40px 550px,
432px 302px,409px 237px,46px 156px)"; | 68 document.getElementById("outer").style.webkitClipPath = "polygon(40px 550px,
432px 302px,409px 237px,46px 156px)"; |
69 requestAnimationFrame(function() { | 69 requestAnimationFrame(function() { |
70 if (window.internals) { | 70 if (window.internals) { |
71 result += "Has clip path ancestor (should not be using composited sc
rolling): "; | 71 result += "Has clip path ancestor (should not be using composited sc
rolling): "; |
72 if (!isUsingCompositedScrolling(JSON.parse(window.internals.layerTre
eAsText(document)))) | 72 if (!isUsingCompositedScrolling(JSON.parse(window.internals.layerTre
eAsText(document)))) |
73 result += "Pass.\n"; | 73 result += "Pass.\n"; |
74 else | 74 else |
75 result += "Fail.\n" | 75 result += "Fail.\n" |
76 } | 76 } |
77 | |
78 if (window.testRunner) { | 77 if (window.testRunner) { |
79 window.testRunner.setCustomTextOutput(result); | 78 window.testRunner.setCustomTextOutput(result); |
80 window.testRunner.notifyDone(); | 79 window.testRunner.notifyDone(); |
81 } | 80 } |
82 }); | 81 }); |
83 }; | 82 }; |
84 </script> | 83 </script> |
OLD | NEW |