Last Updated: 11 May 2023 13:31 by ADMIN
Release R2 2023
Created on: 25 Apr 2016 17:22
Category: WordsProcessing
Type: Feature Request
WordsProcessing: Unify the support of CSS shorthand/longhand properties

Currently some properties are supported only in their shorthand forms, and others - only in their longhand forms: - 'background' shorthand is not supported. - 'margin' shorthand is not supported.

- 'padding' shorthand is not supported. - 'border' shorthand is supported, but 'border-bottom-color', 'border-bottom-style', 'border-bottom-width', 'border-left-color', 'border-left-style', 'border-left-width', 'border-right-color', 'border-right-style', 'border-right-width', 'border-style', 'border-top-color', 'border-top-style', 'border-top-width', 'border-width' are not supported.

IMPORTANT: This feature is available in .NET Core, .NET 6 and above.

Posted on: 23 Feb 2023 11:30


If you have the option to change the css in the source HTML, using the long-hand properties (e.g. border-bottom, border-top, border-left, border-right) is the easiest approach. 

That being said, we are currently revamping our HTML import and, while we are unable to make any concrete predictions regarding a release date, we are hopeful that short-hand properties will be implemented in the near future.

Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Posted on: 22 Feb 2023 10:47

Is there a workaround for this since the official is not releasing a fix yet?


Posted on: 15 Aug 2019 08:27
Thank you for sharing that, Stefan.

Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Posted on: 08 Aug 2019 13:13

One helpful tip to solve this.

Running for a solution I found (and tested) a way of getting away with the border problem.

The OpenXML documentation says it has to be used the border-top, border-left, etc to configure the color, width and style. Like this:

border-bottom:1px double #FF00FF;

border-top:1px double #FF00FF;

border-left:2px solid #FF0000;

border-right:2px solid #FF0000;

This has to be used instead of setting separated attribute values.

It`s the same thing for the border-color, border-style and border-width.. it has to be set in the "border" value, like this:

border: 2px dashed #0000FF;

With this, the Word recognizes the exported CSS.

Posted on: 08 May 2016 21:27
Why is this not done yet? Reported nearly a year ago.