Skip to content

The Microsoft Word DOCX mso-element: para-border-div wrapper should not be used as a separate wrapping element. Instead, it should be moved to the last block element of the wrapper's children. #19029

@Mati365

Description

@Mati365

📝 Provide detailed reproduction steps (if any)

If you set border bottom to a list item, the Microsoft Word wraps the element using div below:

<div style='mso-element:para-border-div;border:none;border-bottom:solid #A7A9AC 2.25pt;
padding:0in 0in 1.0pt 0in'>

It makes the lists separated by div wrapper, which shows only border. We decided to move border to children and get rid of such wrapper to make list continuation looking better.

See more: https://github.com/ckeditor/ckeditor5-commercial/issues/8044
Example HTML file: https://gist.github.com/Witoso/fc17d8435f408e62edcc7701c5f71a70

✔️ Expected result

The Microsoft Word DOCX mso-element: para-border-div wrapper should not wrap all children. Depending on border direction - it should be moved to first or the last block element inside the wrapper.

❌ Actual result

It's being wrapped.

Metadata

Metadata

Assignees

Labels

squad:coreIssue to be handled by the Core team.status:in-progressSet automatically when an issue lands in the "In progress" column. We are working on it.type:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions