[bug] write_html: border-left/top/bottom draw a full border on all sides #1

Closed
opened 2026-10-17 22:14:25 +00:00 by masi · 1 comment
Owner

Context: PaperCraft build of 2026-10-17, write_html on an artboard.
Expected: border-left:3px solid var(--x) draws a stroke on the left side only (CSS behaviour).
Actual: the node gets a stroke on all four sides. The same happens with border-top and border-bottom used as dividers.
Repro: write_html with <div style="border-left:3px solid #5eead4;padding:12px;background:#181825">text</div> into any artboard; screenshot shows a full ring.
Workaround: a 4 px wide child frame as an accent bar; a 1 px tall frame as a divider.
Impact: callouts, quote bars, list dividers cannot be drawn directly; the html guide says "one stroke per node" but not that side borders widen to all sides. Per-side stroke widths would fix it.

**Context:** PaperCraft build of 2026-10-17, `write_html` on an artboard. **Expected:** `border-left:3px solid var(--x)` draws a stroke on the left side only (CSS behaviour). **Actual:** the node gets a stroke on all four sides. The same happens with `border-top` and `border-bottom` used as dividers. **Repro:** `write_html` with `<div style="border-left:3px solid #5eead4;padding:12px;background:#181825">text</div>` into any artboard; screenshot shows a full ring. **Workaround:** a 4 px wide child frame as an accent bar; a 1 px tall frame as a divider. **Impact:** callouts, quote bars, list dividers cannot be drawn directly; the html guide says "one stroke per node" but not that side borders widen to all sides. Per-side stroke widths would fix it.
Author
Owner

Fixed in commit 5169fe6 and released in v0.3.1.

Fixed in commit 5169fe6 and released in v0.3.1.
masi closed this issue 2026-10-17 23:04:13 +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#1