Commit e465f9c7 authored by pdr's avatar pdr Committed by Commit bot

Add new filter repaint test for turbulence, rebaseline existing test

This patch adds a new (currently failing) filter repaint test to show
how we improperly repaint turbulence filters. In addition, the existing
test for 640264 has been unskipped and rebaselined with a failing
result. These two changes should help catch progressions in the future.

BUG=598051,640264

Review-Url: https://codereview.chromium.org/2294633002
Cr-Commit-Position: refs/heads/master@{#415363}
parent cacc2c35
......@@ -558,8 +558,8 @@ crbug.com/529938 virtual/spv2/fast/block/positioning/absolute-length-of-neg-6666
crbug.com/617785 fast/borders/block-mask-overlay-image-outset.html [ Skip ]
# Some SVG tests fail due to incorrect visual rects.
crbug.com/598051 css3/filters/effect-reference-hidpi.html [ Skip ]
crbug.com/640264 css3/filters/effect-reference-hidpi.html [ NeedsRebaseline ]
crbug.com/640264 css3/filters/filter-repaint-turbulence.html [ NeedsRebaseline ]
# Either "combo" or split should run: http://testthewebforward.org/docs/css-naming.html
crbug.com/410320 imported/csswg-test/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html [ Skip ]
......
<!DOCTYPE html>
<!--
This test verifies that turbulence is repainted covering the entire filter
region, including margin.
-->
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
function repaintTest()
{
runAfterLayoutAndPaint(function() {
document.getElementById('div').classList.add('filtered');
if (window.testRunner)
testRunner.notifyDone();
});
}
</script>
<style>
div {
margin: 50px;
height: 100px;
width: 100px;
background-color: green;
}
.filtered {
filter: url(#turbulence);
}
</style>
<body onload="repaintTest()">
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
<defs>
<filter id="turbulence">
<feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="1"/>
</filter>
</defs>
</svg>
<div id="div"></div>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment