[bug] Parent border painted under full-width children (overflow:hidden frame) #19

Closed
opened 2026-10-25 07:49:00 +00:00 by masi · 0 comments
Owner

Expected: A frame with border:1px solid; border-radius:14px; overflow:hidden shows its border on all sides, like CSS (border sits outside the content box).
Actual: Children with align-self:stretch and a background fill the whole box and cover the parent's side and bottom borders; only the edges with no child fill stay visible.
Repro: write_html <div style="display:flex;flex-direction:column;border:1px solid #ccc;border-radius:14px;overflow:hidden;width:300px"><div style="align-self:stretch;height:40px;background:#eee"></div><div style="align-self:stretch;height:40px;background:#fff"></div></div> then get_screenshot: left/right/bottom borders hidden.
Workaround: padding:1px on the parent, which lint then flags as off the 4px grid.
Impact: Every bordered table/card with filled rows looks open-ended.


Filed from PaperCraft 0.7.2 (macos).

**Expected:** A frame with `border:1px solid; border-radius:14px; overflow:hidden` shows its border on all sides, like CSS (border sits outside the content box). **Actual:** Children with `align-self:stretch` and a background fill the whole box and cover the parent's side and bottom borders; only the edges with no child fill stay visible. **Repro:** write_html `<div style="display:flex;flex-direction:column;border:1px solid #ccc;border-radius:14px;overflow:hidden;width:300px"><div style="align-self:stretch;height:40px;background:#eee"></div><div style="align-self:stretch;height:40px;background:#fff"></div></div>` then get_screenshot: left/right/bottom borders hidden. **Workaround:** `padding:1px` on the parent, which lint then flags as off the 4px grid. **Impact:** Every bordered table/card with filled rows looks open-ended. --- Filed from PaperCraft 0.7.2 (macos).
masi closed this issue 2026-10-25 15:33:50 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: masi/papercraft#19