Skip to content

Seems not to work for HTML inside SVG #11

@spyro2000

Description

@spyro2000

For some reason, the library computes all styling for the SVG elements itself (like <g> etc.) but seems to exclude the embedded HTML elements (like <div>, <h1> and so on).

At least, that's what happens inside an angular component, even with ng-deep:: in place.

image

As a result, the HTML is rendered with styling in the browser, but the exported SVG has lost of its styling information.

EDIT: It's the same with a global stylesheet. All embedded HTML elements are ignored for some reason (there styling is not copied to the elements itself).

EDIT 2: Maybe it's just ignoring all <foreignObject>elements?

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