diff --git a/tests/ref/locate-migrated-breakable.png b/tests/ref/locate-migrated-breakable.png new file mode 100644 index 000000000..2ee414e45 Binary files /dev/null and b/tests/ref/locate-migrated-breakable.png differ diff --git a/tests/suite/introspection/locate.typ b/tests/suite/introspection/locate.typ index 18611dded..420c8b92a 100644 --- a/tests/suite/introspection/locate.typ +++ b/tests/suite/introspection/locate.typ @@ -72,6 +72,18 @@ B #pagebreak(weak: true) #metadata(none) +--- locate-migrated-breakable --- +// Ensure that when a breakable element fully migrates to the next page without +// orphan frames, its position correctly reflects that. +#set page(height: 40pt) +A +#block[B] + +#context test( + locate().position(), + (page: 2, x: 10pt, y: 10pt), +) + --- issue-4029-locate-after-spacing --- #set page(margin: 10pt) #show heading: it => v(40pt) + it