Approved
Last Updated: 15 Aug 2019 08:27 by ADMIN
ADMIN
Deyan
Created on: 25 Apr 2016 17:22
Category: WordsProcessing
Type: Feature Request
7
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.
- '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.
3 comments
ADMIN
Tanya
Posted on: 15 Aug 2019 08:27
Thank you for sharing that, Stefan.

Regards,
Tanya
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.
Stefan
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.

http://officeopenxml.com/WPtableCellBorderConflicts.php

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.

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