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

format state shows fontSize:1.5em in h2 element #2700

Open
miku1958 opened this issue Jun 14, 2024 · 4 comments
Open

format state shows fontSize:1.5em in h2 element #2700

miku1958 opened this issue Jun 14, 2024 · 4 comments
Assignees

Comments

@miku1958
Copy link
Contributor

To Reproduce
Steps to reproduce the behavior:

  1. Prepare a h2 element(copy or forward mail)
  2. Select text in h2 element
  3. Format state shows fontSize:1.5em
image

Expected behavior
Format state should return override font size of h2 element or its parent's font size

Device Information

  • OS: macOS
  • Browser safari
@miku1958
Copy link
Contributor Author

In addition, 1.5em is used as the font size when typing a new element
image

@JiuqingSong
Copy link
Collaborator

It seems the whole header thing is broken to me actually.

@JiuqingSong
Copy link
Collaborator

Hi @miku1958 , can you provide a detailed repro step for both issue, better include the HTML before editing and after editing, and the HTML you are expecting.

Thanks.

To me, when add a pure H2 element, for example <h2>test</h2>, I see the font size is 1.5em, which is the expected value. What value do you expect to see?

@miku1958
Copy link
Contributor Author

I sented you a test email and yes, it shows 1.5 in OWA, if the user changes the font size it will be wrapped in a span.

I would have expected
a. format can return the value converted to px
or b. CM would automatically turn it into a div and automatically calculate the font size to px when converting the initial html

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

No branches or pull requests

2 participants