| Index: LayoutTests/compositing/overflow/scroller-with-border-radius.html
|
| diff --git a/LayoutTests/compositing/overflow/descendant-with-clip-path.html b/LayoutTests/compositing/overflow/scroller-with-border-radius.html
|
| similarity index 79%
|
| copy from LayoutTests/compositing/overflow/descendant-with-clip-path.html
|
| copy to LayoutTests/compositing/overflow/scroller-with-border-radius.html
|
| index 2118dba60e91d1d2ad506d66e9359f72aae39a56..3f408907eae96ee774f6e60ed37351769e5b9f77 100644
|
| --- a/LayoutTests/compositing/overflow/descendant-with-clip-path.html
|
| +++ b/LayoutTests/compositing/overflow/scroller-with-border-radius.html
|
| @@ -7,10 +7,10 @@
|
| background-color: red;
|
| }
|
|
|
| -#inner {
|
| +#scrolled {
|
| height: 1000px;
|
| width: 250px;
|
| - background-color: blue;
|
| + background-color: green;
|
| }
|
|
|
| #fixed {
|
| @@ -23,9 +23,8 @@
|
| }
|
| </style>
|
| <div id="scroller">
|
| - <div id="inner">
|
| - <div id="fixed"></div>
|
| - </div>
|
| + <div id="scrolled"></div>
|
| + <div id="fixed"></div>
|
| </div>
|
| <script>
|
| function isUsingCompositedScrolling(layer) {
|
| @@ -52,16 +51,16 @@ var result = "";
|
|
|
| onload = function() {
|
| if (window.internals) {
|
| - result += "No clip path descendant (should be using composited scrolling): ";
|
| + result += "No border radius (should be using composited scrolling): ";
|
| if (isUsingCompositedScrolling(JSON.parse(window.internals.layerTreeAsText(document))))
|
| result += "Pass.\n";
|
| else
|
| result += "Fail.\n"
|
| }
|
| - document.getElementById("inner").style.webkitClipPath = "polygon(40px 550px,432px 302px,409px 237px,46px 156px)";
|
| + document.getElementById("scroller").style.borderRadius = '5px';
|
| requestAnimationFrame(function() {
|
| if (window.internals) {
|
| - result += "Has clip path descendant (should not be using composited scrolling): ";
|
| + result += "Has border radius (should not be using composited scrolling): ";
|
| if (!isUsingCompositedScrolling(JSON.parse(window.internals.layerTreeAsText(document))))
|
| result += "Pass.\n";
|
| else
|
|
|