Fetching documentation…
box-shadow, outline, Margin CollapseStatus: shipped · Priority: done · Depends on: CSS Cascade
All three proposals in this record have landed. The notes below are retained as the design record; user-facing syntax lives in CSS Properties.
box-shadowShipped. Parsed into IRStyle.box_shadows (up to four layers, inset supported) and painted through the runtime shadow path behind MORPH_FEATURE_SHADOW.
box-shadow: 2px 2px 8px rgba(0,0,0,0.3) and the inset variantoutlineShipped. outline, outline-color, outline-width, outline-style, and outline-offset are parsed into IRStyle and painted as a ring outside the border edge behind MORPH_FEATURE_OUTLINE (which implies the border paint path).
border, outline does not affect layoutnone, solid, dashed, dotted, and doubleoutline-offset moves the ring outward (positive) or inward (negative):focus state wiring is still future workShipped behind MORPH_FEATURE_MARGIN_COLLAPSE in runtime/cpp/core/node/layout.cpp (CSS 2.1 §8.3.1):
m_computedMargin| Feature | State |
|---|---|
box-shadow parsing + painting |
✅ Shipped |
outline parsing + ring painting |
✅ Shipped |
| Margin collapse | ✅ Shipped |
| Focus rings via outline | ❌ Not started (:focus state not modeled; tracked in CSS Finalization) |
:focus / :focus-visible selectors so outline can serve as a focus ring — tracked in CSS Finalization