Specification link: 15.13 Filter primitive 'feConvolveMatrix'

filters-conv-03-f ← index → filters-conv-05-f

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

# filters-conv-04-f.svg
SVG Image | PNG Image

## Operator Script

Run the test. No interaction required.

## Pass Criteria

The test has passed if:

- The raster images in the top row appears more faded and coarse for each instance further to the right.
  - The first image (left most) must be smooth and clear
  - The second image (second from the left) must contain the same colours as the first image but have course outlining around the objects.
  - The third image (second from the right) must contain colour that is very faded but have course outlining around the faded objects.
  - The last image (right most) must be completed faded such that all the colour in the first image appears to have gone to white. Some course outlining should appear in the image.
- The top row has no checkerboard pattern visible where the filtered results are.
- The rectangle with a green gradient going from left to right appears more faded for each instance further to the right.
  - The first image (left most) must be a rect filled with a linear gradient that transitions from solid green to transparent green.
  - The second image (second from the left) must be identical to the first image.
  - The third image (second from the right) must contain a linear gradient that transitions from a solid faded green to transparent faded green.
  - The last image (right most) must contain a linear gradient that transitions from solid white to transparent white.
- The bottom row must show 95% of the checkerboard pattern where the filtered results are since the gradients are transparent.

## Test Description

Tests the 'bias' attribute on 'feConvolveMatrix'.

The test uses a raster image and a vector graphic to test the effect that the 'bias' attribute on 'feConvolveMatrix' has.

The first row of images in the test are four identical raster images. The first image is the original unfiltered image. The second has the filter kernel applied with no bias value specified. The third and fourth images both have a bias value specified for the filter.

The second row of images in the test are four rectangle objects with a gradient fill. The gradient fill transitions from opaque green to transparent green. The first image is the original unfiltered graphic. The second graphic has a filter kernel applied with no bias value specified. The third and forth images both have a bias value specified for the filter.

Behind each filter result there's a checkerboard pattern placed, to help verify that there's transparency in the lower row, but not in the upper.

filters-conv-03-f ← index → filters-conv-05-f