Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: LayoutTests/compositing/overflow/scroller-with-border-radius.html

Issue 544183002: Opt out of composited scrolling with border radius. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectations. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/overflow/scroller-with-border-radius-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698