Gradients with gradientUnits="objectBoundingBox" do not show on read
Summary:
SVG images that use a gradient based on gradientUnits="objectBoundingBox" do not display the gradient when first read.
If the object using the gradient is moved, the gradient appears as expected. Exporting the image to PNG renders the correct gradient. Hence, the problem appears to lie solely with Inkscape's initial rendering of the SVG image.
Steps to reproduce:
- Open Inkscape.
- Open the attached file.
At this point, I don't see the gradient. Next,
- Move the rectangle with either the mouse or keyboard.
Et voilà! The gradient appears.
What happened?
I initially see the rendered rectangle with no gradient:
What should have happened?
It should have shown the gradient:
Sample attachments:
Version info
Inkscape 1.1.1 (3bf5ae0, 2021-09-20)
GLib version: 2.64.6
GTK version: 3.24.20
glibmm version: 2.64.2
gtkmm version: 3.24.2
libxml2 version: 2.9.10
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.44.7
HarfBuzz version: 2.6.4
Poppler version: 0.86.1
OS version: Ubuntu 21.04

