-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Page - Editor - Cloud
-
None
Support <span> elements with multiple inline styles in the Confluence Cloud Editor storage format.
Current behavior
In the Confluence Cloud Editor:
- Content is stored in the storage format (XHTML/XML).
- When HTML or HTML-like content is brought into the editor (e.g., via API, macro output, or copy/paste), <span> elements that contain multiple inline CSS properties on a single style attribute are:
-
- Sanitized, flattened, or partially stripped, or
- Not reliably round-tripped when the page is edited and re-saved.
- As a result, combinations like:
<td style="padding: 10.0px;text-align: center;vertical-align: middle;"> <span style="display: inline-block;background-color: rgb(174,42,25);color: white;padding: 4.0px 8.0px;border-radius: 4.0px;font-weight: bold;min-width: 50.0px;"> 50 </span> </td>
may lose one or more style properties after being processed by the editor and storage-format pipeline.
This behavior breaks certain HTML-based integrations, macro/app outputs, and formatting migrations where multiple inline styles on a single span are required for fidelity.
Expected behavior
- Confluence Cloud Editor and its underlying storage format should:
- Allow a single <span> node to carry multiple inline CSS properties in its style attribute (e.g. display, background-color, color, padding, border-radius, font-weight, min-width, etc.) as long as they are safe and supported.
- Preserve these multiple properties in storage format without silently dropping or merging them in a way that changes the visual result.
- Round-trip them losslessly:
- When content is created/updated via the REST API or apps.
- When users edit the page in the editor and re-save it.