fix: clear the block after a topBottom frame below its band
A float only pushes lines that intersect it, so a short block (a heading) slotted into the clearance gap a prior side float opens above the band. Word and LibreOffice both start the next paragraph below the band; a page-break spacer and the partner block of a wrapAlign pair are exempt.
This commit is contained in:
1 parent
6144b9fde0
commit
c4f32bb380
2 files changed
+8
-1
No files matched your search
@@ -382,6 +382,13 @@
|
||||
.paper .tiptap .image-node[data-wrap]:not([data-anchor-page]) {
|
||||
z-index: 1;
|
||||
}
|
||||
/* No text beside a topBottom band means the next block too: a short one would slot
|
||||
into the clearance gap above the sunk float. A spacer already starts a new page,
|
||||
and a block holding the band-sharing partner frame (wrapAlign pair) must not clear. */
|
||||
.paper .tiptap :is(p, h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, blockquote):has(.image-node[data-wrap='topBottom']:not([data-anchor-page]))
|
||||
+ :not([data-page-break-spacer], :has(.image-node[data-wrap='topBottom'])) {
|
||||
clear: both;
|
||||
}
|
||||
.paper .tiptap .image-rotor {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
|
||||
Reference in new issue
Block a user