Inert, size-aware SVG layers welded to elements. Drag the resize handles (bottom-right) and watch the decoration redraw live via ResizeObserver.
A parallelogram drawn behind the text. The shape is recomputed from the box's pixel size on every resize.
The connector stem and soft glow are drawn past the element's edges (overflow: visible). No padding hack.
Four stacked layers on one element: pseudo-elements give you two, here we have four with explicit z-order.
A corner ribbon drawn in front of a real button. It's pointer-events:none, so the button still clicks.
Decoration is aria-hidden and doesn't intercept selection. Try selecting the sentence below.
The host sizes to its (editable) text via CSS; the decoration tracks it through ResizeObserver. Click and type.