| Index: third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html b/third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7a1c56f2d1ad8d93af0dfd9c0bad5bede252a740
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/repaint/turbulence-filter-repaint.html
|
| @@ -0,0 +1,46 @@
|
| +<!DOCTYPE html>
|
| +<script src="resources/text-based-repaint.js"></script>
|
| +<script>
|
| +function repaintTest() {
|
| + var img = document.getElementById('hashtagNoFilter');
|
| + img.setAttribute('id', 'filtered');
|
| +}
|
| +onload = runRepaintAndPixelTest;
|
| +</script>
|
| +<style>
|
| +* {
|
| + margin: 0;
|
| + padding: 0;
|
| +}
|
| +img {
|
| + position: absolute;
|
| + top: 50px;
|
| + left: 50px;
|
| + width: 100px;
|
| + height: 100px;
|
| + margin: 50px;
|
| +}
|
| +#filtered {
|
| + filter: url(#turbulence);
|
| +}
|
| +#width {
|
| + position: absolute;
|
| + left: 90px;
|
| + top: 50px;
|
| + width: 120px;
|
| + height: 1em;
|
| + border-right: 1px solid black;
|
| + border-left: 1px solid black;
|
| + text-align: center;
|
| +}
|
| +</style>
|
| +crbug.com/640264: Pass if the repaint rect covers the filtered region and there is no red.
|
| +<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
|
| + <defs>
|
| + <filter id="turbulence">
|
| + <feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1"/>
|
| + </filter>
|
| + </defs>
|
| +</svg>
|
| +<img id="hashtagNoFilter" src="resources/ducky.png">
|
| +<div id="width" class="ruler">filtered width</div>
|
|
|