Details
-
Bug
-
Resolution: Unresolved
-
Low
-
1
-
Severity 3 - Minor
-
1
-
Description
Issue Summary
When converting contents to styled_view using the REST API (/rest/api/contentbody/convert/styled_view), it returns the content with some css styles applied. But this CSS styles contain a few problems that prevents styling the whole content properly.
Steps to Reproduce
- Call the REST API and passing in some body in some content format (i.e., storage format)
- Validate the returned value
Expected Results
The API returning a proper valid CSS so that the content is styled properly
Actual Results
The CSS returned with the styled content is invalid. Based on my observation, the following issues can be found:
- The CSS are batched together, but single line comments (i.e., // comments) are not removed, so there are parts of the css where it's invalid. The whole minified CSS is a single line, so everything after the single line comment is commented out.
- Some styles are being returned in LESS format instead of regular CSS. (https://jira.atlassian.com/browse/CONFCLOUD-57168)
Workaround
Manually getting the CSS and using that instead of the generated CSS in the styled view response.
Attachments
Issue Links
- followed by
-
CONFCLOUD-71958 CDAC post / rollout plan to let existing use cases take note and adapt to changes
- Closed
- is blocked by
-
CONFCLOUD-71959 Swap out style sheet to return valid CSS
- Closed
- is related to
-
CONFCLOUD-57168 Rest API returns LESS code or similar instead of CSS when expanding "styled_view"
- Closed
1.
|
CDAC post / rollout plan to let existing use cases take note and adapt to changes | Closed | Unassigned | |
2.
|
Swap out style sheet to return valid CSS | Closed | Unassigned |