Internal PDF import: Mask from gradient fill is also applied to stroke

Summary:

See title. Separated out from inkscape#1742 (closed).

Steps to reproduce:

  • open Inkscape
  • open test.pdf with internal import (which is an export of test.svg

What happened?

image

What should have happened?

image

Sample attachments:

Version info


Inkscape 1.3-dev (7e1a6f8, 2023-02-24)

    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.17.7
    Pango version:    1.44.7
    HarfBuzz version: 2.6.4

    OS version:       Ubuntu 22.04.2 LTS