Skip to content

Font-size Property Restriction: No Support for 'pt' Units #949

@Moath-Zaghdad

Description

@Moath-Zaghdad

Describe the bug

On version 7.2.0 you can create a new font element and set the font to 10pt or 10px without any issue, however on on 7.3.3 the font-size attribute gets converted to float, note this line

elem.setAttribute(attr, isNaN(parseFloat(newValue)) ? newValue : parseFloat(newValue))

which use to be
elem.setAttribute(attr, newValue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions