Skip to content

Regression <g> tag inside HTML element not being captured in picture #524

Open
@emil-sharkov

Description

@emil-sharkov

If an html element has a <g></g> inside, the picture will show cutouts wherever the <g> is. This is a regression from v1.11.11 where it worked.

Expected Behavior

Image

Current Behavior

Image

Possible Solution

Fix the regression occurring from 1.11.11 to 1.11.13

Steps to Reproduce

use toPNG() on

<div>
    <svg>
        <g>
             <rect width="200" height="100" fill="green" />
        </g>
    </svg>
</div>

You should see a green rectangle in the picture you take but instead its a gray rectangle

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions