Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Moath-Zaghdad opened this issue Jan 29, 2024 · 1 comment
Open

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

Moath-Zaghdad opened this issue Jan 29, 2024 · 1 comment
Labels

Comments

@Moath-Zaghdad
Copy link
Contributor

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)

@jfhenon
Copy link
Collaborator

jfhenon commented Jan 30, 2024

Good point. We need to review the function changeSelectedAttributeNoUndoMethod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants