-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
package:tablerelease:blockerThis issue blocks the upcoming release (is critical).This issue blocks the upcoming release (is critical).resolution:resolvedThis issue was already resolved (e.g. by another ticket).This issue was already resolved (e.g. by another ticket).type:bugThis issue reports a buggy (incorrect) behavior.This issue reports a buggy (incorrect) behavior.
Description
📝 Provide detailed reproduction steps (if any)
- Go to https://ckeditor.com/ckeditor-5/demo/feature-rich/.
- Insert a table.
- Add a caption to the table (a few words at least).
- Observe the position and size of the table.
- Enable print emulation in Chrome
✔️ Expected result
The table caption should render properly, like in the desktop/display version.
❌ Actual result
The figcaption
is broken, being displayed each letter on a separate row.
❓ Possible solution
The issue appears not to be from within the figcaption
itself, but the parent figure
. For the display: table-caption
of the figcaption
to work, the parent figure
needs to be display: block
, but there is specific a override for printing:
@media print {
.ck-content figure.table:not(.layout-table):has(>table) {
display: block;
}
}
The solution would probably be to either remove the rule to let the parent figure
be a table or change the display
of the figcaption
(however this would break the alignment, being displayed at the bottom instead of the top of the table).
📃 Other details
- Browser: Edge Version 138.0.3351.95 (Official build) (arm64)
- OS: Windows 11
- First affected CKEditor version: 46.0.0
- Installed CKEditor plugins: Happens in vanilla as well.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
Metadata
Metadata
Assignees
Labels
package:tablerelease:blockerThis issue blocks the upcoming release (is critical).This issue blocks the upcoming release (is critical).resolution:resolvedThis issue was already resolved (e.g. by another ticket).This issue was already resolved (e.g. by another ticket).type:bugThis issue reports a buggy (incorrect) behavior.This issue reports a buggy (incorrect) behavior.