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

Content Model convert "dir" attribute to "direction" style #2644

Open
haven2world opened this issue May 17, 2024 · 0 comments
Open

Content Model convert "dir" attribute to "direction" style #2644

haven2world opened this issue May 17, 2024 · 0 comments

Comments

@haven2world
Copy link
Contributor

Describe the bug
Content Model's directionFormatHandler convert "dir" attribute to "direction" style, but in MDN, "direction" is not recommended.
First, "direction" style doesn't support "auto"
And even more, the "dir" attribute is still preserved, if "dir" is "auto" and "direction" is left, the RTL support will be broken.
https://developer.mozilla.org/en-US/docs/Web/CSS/direction
image

To Reproduce

  1. add "dir=auto" on any Div
  2. trigger Content Model conversion

Expected behavior
Keep "dir" as recommended

JiuqingSong added a commit that referenced this issue May 29, 2024
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

1 participant