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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/reflection-invalidation-positioned-child-expected.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/fast/repaint/reflection-invalidation-positioned-child-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html b/third_party/WebKit/LayoutTests/fast/repaint/reflection-invalidation-positioned-child-expected.html
similarity index 51%
copy from third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html
copy to third_party/WebKit/LayoutTests/fast/repaint/reflection-invalidation-positioned-child-expected.html
index 63a3ed96b7b7e71923fca86a24e3e13c47206819..d07d555e73ed94de6473c027ddefe47dd388d06f 100644
--- a/third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html
+++ b/third_party/WebKit/LayoutTests/fast/repaint/reflection-invalidation-positioned-child-expected.html
@@ -1,14 +1,17 @@
<!DOCTYPE html>
<style>
+body {
+ margin: 0;
+}
#box {
width: 100px;
height: 100px;
background-color: green;
- -webkit-filter: drop-shadow(250px 50px 10px red);
+ -webkit-box-reflect: below 20px;
}
#positioned {
position: absolute;
- top: 400px;
+ top: 10px;
left: 400px;
width: 50px;
height: 50px;
@@ -16,16 +19,9 @@
}
</style>
<!--
-Tests paint invalidation of positioned object when its ancestor changes filter.
-Passes if the all drop shadows change to green.
+Tests paint invalidation of positioned object when its ancestor changes reflection.
+Passes if there is no red.
-->
<div id="box">
<div id="positioned"></div>
</div>
-<script src="resources/text-based-repaint.js"></script>
-<script>
-function repaintTest() {
- box.style.webkitFilter = 'drop-shadow(300px 100px 10px green)';
-}
-runRepaintTest();
-</script>

Powered by Google App Engine
This is Rietveld 408576698