Created attachment 193006 [details] layoutInCell_mso2010.pdf: how it looks in the authoring program The in-background-through image (following the shape code path since it is rotated) must not be placed relative to the page margins, but must be placed relative to the paragraph area. Therefore, the image should appear mid-way down the cell, instead of at the top. This is not related to compatibilityMode.
Created attachment 193007 [details] 160077_layoutInCell.docx: anchored to top of page margin, but forced into cell
Created attachment 193022 [details] tdf160077_layoutInCellB.docx: needed for images too
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/d210667c72ff821b8cb50b386a83ed55d65ae9bf tdf#160077 writerfilter: shape vertRelation is FRAME for layoutinCell It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/61b1d3a17ff784b7c79a92cbe069a90ce4932535 tdf#160077 unit test: this file was helpful identifying a "bad fix" It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Justin L from comment #2) > Created attachment 193022 [details] > tdf160077_layoutInCellB.docx: needed for images too https://gerrit.libreoffice.org/c/core/+/164516 fixes this, but in an unsafe way... Leaving the issue open to address the image path (which keeps the FollowTextFlow attribute, while the shape path didn't).