Created attachment 195928 [details] layoutInCell_fromTop_cellMargin.doc: image top should start at cell margin This is a follow-up to DOC bug 91632 and DOCX bug 160077. Not only should the vertical "page" be limited to the cell margin, but similarly, negative "from paragraph top" should be limited by cell margin (as well as positive values be limited by bottom cell margin). Once again, this is not related to compatibilityMode=15. Steps to reproduce: -open layoutInCell_fromTop_cellMargin.doc Notice that the image top is at the top of the cell. (It should be 0.25cm below the border.) I think this should be an MSO-only layout issue. It isn't logical to use margin for vert and cell edge for horizontal.
Created attachment 195936 [details] layoutInCell_fromTop_cellMargin-mso2010.pdf: how it looks in Word 2010
proposed patch at https://gerrit.libreoffice.org/c/core/+/172612
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/23a97ce1d501a7b98d438007c4cfe5b5c77fa295 tdf#162539 layoutInCell: limit vert to cell margin It will be available in 25.2.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.