PDF - Stitching functions with sampled function that repeats a pattern does not get rendered
Drawing a linear gradient:
background: linear-gradient(red 0%, green 25%, blue 50%, red 50%, green 75%, blue 100%);
The PDF uses stitching functions with sampled functions. The gradient repeats it self, and looks fine on all viewers. However Evince seems to ignore the last 3 sampled functions and only shows half. By changing the color of one of the color sample values by one, Evince is happy again and renders the files as expected.
See attached files and different in line 97 - second last byte. fails.pdf works.pdf