Skip to content

SVG <rect> changes size in Chrome #2

@tlrobinson

Description

@tlrobinson

If you have an SVG element with width and height attributes (not style) it seems Chrome reports the computed width and height as auto, which overrides the attributes when using computed-style-to-inline-style

Demo: https://jsfiddle.net/uqL9hxnk/1/

This doesn't happen in Safari or Firefox, so maybe it's a bug in Chrome. It would be nice if computed-style-to-inline-style worked around it though.

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