Skip to content

SVG fragment identifiers being ignored on background images #142

@Gamewise

Description

@Gamewise

Steps To Reproduce

  1. Put a svg fragment identifier on the end of a background image url. like this:

Note the #svgView(preserveAspectRatio(none)) on the end of the url.

  1. You will find that the svg can be stretched using this method in the browser (ie Chrome).
    However, Modern Screenshot does not respect this, and instead ignores the svgView fragment identifier. Maybe Modern screenshot is accidentally stripping them out of the backgroudn url property or something?

See the example below:

Example](https://play.vuejs.org/#eNp9VGFr2zAQ/SuHxogNiZ0u7QZeWuhGGR1sK23XT4ah2BfHrS0JSXZSQv77TrKdpOvoBznWu/O7d++ObNmlUlHbIEvY3GS6VBYM2kZdpKKsldQWtpDL+l7eiAJ2sNSyhlEtc9RiQvmIwqykHR1la1yOQYofshEW8/03VIOyUpFJYSxoKe1VBecuOwgHNOeW/769PsCp2BMF3DyLDIIQzi9gmwoYsqOWVw3SN3zNS+LoxQZdiS46Jl0m4xUm8AF2ROzOPO4aplbpYrFWFbdIN4B5XrZOw3nKOpqUQVZxY3ogZT6tTzT2uUKKOGiFZbGyCZxOp2rz2SHrMrerBD56AByy4NlToamtPIFGV8FoZa0ySRzn2EbrWSR1Ed89fIutlJWJTVuscREbTvrQXyfL0r2dnkwjur2j81DiOlAaDeoWL43CzN5yW8qA/MMwHIW+7tn0vT8xnEzpxz+EnGhUyC0spKapThaSZLv2vA8x9de3CsTxAiPTyrqAxOiMmu+nQUYNdljNhVlKXSed98E0OgvBo87oYEJaxuCeIVWEmDjn8dEY6OqpfP3I2d7NfW/pbO/xwfcDtvMT9gRszLr1nNRcRY9GClp3z5X2AZOyZGBP2av9dtGUDWNqhHoqokzW8atE8sbYuBQ5bqL6kVh7JTuSYA1t+bIs/hFAPIrmqX8pGph4KYRXlVx/95jVtMYDnq0we/oP/mg2ndSbfhdSto9ZrgvsO7m6+4kbet8HqZGmouw3grdoZNU4jV3aF9pfkn2U59Veez9LUdybq40lV4amnFDvhs9PGf0hfH2j9YPcWXR65OKfFrXjJANn0Vl08ont/gJlAJMB)

If this could be fixed it would make SVG images a breeze to work with! Happy to pay $200 if this can be fixed!

Links to more info on SVG fragment identifiers:
-https://www.w3.org/TR/SVG/linking.html#SVGFragmentIdentifiers
-https://stackoverflow.com/questions/29252491/how-to-add-preserveaspectratio-to-svg-used-as-background-image

Your Environment

Vue 3

  • modern-screenshot: 4.6.4
  • Browser: Latest Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions