Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116883 Qt Quick Shapes: Loading vector graphics
  3. QTBUG-123991

Masks inside <defs> ignored by SVG generators

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • SVG Support
    • None
    • All

    Description

      If a <mask> is defined inside a <defs> it seems we never actually parse it, because the visitDefsNodeStart() function returns false for both generators.

      This is because for the typical case, we only care about the contents of defs when it is used. However, a <mask> defined inside the subtree should still be accessible for masking other items. This seems like a weird corner case, but it's actually done in an example in the SVG docs: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Clipping_and_masking#masking

      So maybe it's considered good practice to collect those types of things inside a defs branch.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes