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

Unified Diff: LayoutTests/paint/invalidation/spv2/fixed-pos-inside-composited-intermediate-layer-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/paint/invalidation/spv2/fixed-pos-inside-composited-intermediate-layer-expected.html
diff --git a/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html b/LayoutTests/paint/invalidation/spv2/fixed-pos-inside-composited-intermediate-layer-expected.html
similarity index 83%
copy from LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
copy to LayoutTests/paint/invalidation/spv2/fixed-pos-inside-composited-intermediate-layer-expected.html
index f8d1c420d22357055b2a5d1530bb7ccc63cf0c0f..b508705434000003402cc91c8499123163347810 100644
--- a/LayoutTests/compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html
+++ b/LayoutTests/paint/invalidation/spv2/fixed-pos-inside-composited-intermediate-layer-expected.html
@@ -2,7 +2,6 @@
<html>
<head>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<style>
.compositedBehind {
@@ -22,13 +21,14 @@
background-color: green;
}
-.fixed {
- position: fixed;
- top: 45px;
+.absolute {
+ position: absolute;
+ top: 145px;
left: 45px;
background-color: lime;
width: 50px;
height: 50px;
+ z-index: 3;
}
</style>
@@ -39,7 +39,7 @@
internals.settings.setPreferCompositingToLCDTextEnabled(false);
}
- function repaintTest() {
+ onload = function() {
window.scrollTo(0, 100);
}
</script>
@@ -48,7 +48,7 @@
-<body onload="runRepaintTest()">
+<body>
<!--
Among other duplicate bugs: https://code.google.com/p/chromium/issues/detail?id=128375
A non-composited fixed-position element can get grouped into a composited container.
@@ -58,9 +58,9 @@
-->
<div class="compositedBehind"> </div>
- <div class="containerOverlapsComposited">
- <div class="fixed"></div>
- </div>
+ <div class="containerOverlapsComposited"></div>
+
+ <div class="absolute"></div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698