-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bug: Incomplete CSS margin parsing if "auto" or "0" without unit is used #1330
Comments
I just found that problem when working with PFW. There are more cases of buggy margins: Case 1:
Case 2:
And probably many other cases. |
Is this bug going to be fixed ?
|
Anyone? |
Hello @achrysanthakopoulou, For anyone interested in fixing this issue, please add 👍 reaction to the issue report. |
Hello @f1ames Please check the following code: It solves my problem but needs testing. At ckeditor-dev you can find it in : |
@achrysanthakopoulou thanks for checking this issue! Maybe you would like to prepare a PR with the fix (please see contributing guide)? |
Fixed in #4270. |
Are you reporting a feature request or a bug?
Bug
Related to #450
Open HTML with inline CSS like
margin: 10px 0 0;
switch to Source mode, oropen HTML with inline CSS like
margin: 10px auto 0;
switch to Source mode.Expected result
margin-bottom:0; margin-left:0; margin-right:0; margin-top:10px
, ormargin-bottom:0; margin-left:auto; margin-right:auto; margin-top:10px
Actual result
margin-bottom:10px; margin-left:10px; margin-right:10px; margin-top:10px
What is the actual result of the above steps?
Incorrect margins are applied
The text was updated successfully, but these errors were encountered: