diff --git a/moli-layout/src/projection.rs b/moli-layout/src/projection.rs index ded04acbe5..acc5d25783 100644 --- a/moli-layout/src/projection.rs +++ b/moli-layout/src/projection.rs @@ -784,6 +784,25 @@ where for fragment in self.owner_paint_fragments[index].clone() { self.assign_fragment_paint_metadata(fragment, self.content_clips[index]); } + // An atomic inline-level box (a replaced element, form + // control, or inline-block wrapper consumed by its owner + // IFC) is painted and hit-tested as line content, in front + // of the enclosing inline boxes' fragments. Promote its own + // box fragment to this contents phase so a point inside the + // atomic's box resolves to the atomic rather than to an + // inline ancestor (e.g. a wrapping `