| Index: third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html b/third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7988208b460140f6a436d2eacc62c8f6040867fe
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-positioned-child.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +#box {
|
| + width: 100px;
|
| + height: 100px;
|
| + background-color: green;
|
| + -webkit-filter: drop-shadow(250px 50px 10px red);
|
| +}
|
| +#positioned {
|
| + position: absolute;
|
| + top: 400px;
|
| + left: 400px;
|
| + width: 50px;
|
| + height: 50px;
|
| + background-color: blue;
|
| +}
|
| +</style>
|
| +<!--
|
| +Tests paint invalidation of positioned object when it's ancestor changes filter.
|
| +Passes if the all drop shadows change to green.
|
| +-->
|
| +<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>
|
|
|