Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

filters-displace-02-f.svg

SVG Image

PNG Image

FAIL

Operator Script

Run the test. No interaction required.

Pass Criteria

The test has passed if:

the top rectangle is overlapped by a gradient that has its blackest part centered around the vertical green line that splits the top rectangle

the bottom right corner of the area covered by the top gradient is aligned with the corner just below the top rectangle

the bottom rectangle is overlapped by a gradient that is displaced upwards with the maximum displacement the middle indicated by the vertical green line that splits the bottom rectangle

no part of the bottom gradient extends outside the bottom rectangle

both gradients use the same gradientcolors

Test Description

This tests feDisplacementMap without feImage. The input geometry is also used as the displacement map.

The bottom subtest tests that not specifying the 'xChannelSelector' attribute has the same effect as if 'A' was specified.

In both cases the filter input image consists of a gradient that is rendered using the default 'color-interpolation' which is 'sRGB'.
The default colorspace for filter primitives is 'linearRGB'. The filtering operation happens in 'linearRGB' space and the
result is then transformed back to 'sRGB' space for display.