Obsolescence Radar

Historical JS/CSS workarounds replaced by native browser primitives.

Legacy Pattern
JS Floating Positioning Engines (Floating UI)

Floating positioning engines compute coordinates via getBoundingClientRect() and middleware pipelines (flip, shift, offset) synced to scroll and resize.

Native Replacement
CSS Anchor Positioning

anchor-name and anchor() tether popovers and tooltips to trigger elements natively in Layout, including viewport-collision flips.

Declarative anchor() and position-try-fallbacks replace JS getBoundingClientRect() measurement and repositioning loops.

Superseded
JS ResizeObserver Pattern for Adaptive Layout

Legacy pattern using ResizeObserver and JS state to toggle CSS classes based on container width. Superseded by @container.

Native Replacement
CSS Container Queries (@container)

CSS queries evaluating an explicit parent container's dimensions or styles instead of the global viewport, resolved natively during Layout.

Eliminates ResizeObserver + JS class toggling to adapt components to their container.

Superseded
React Portals and z-index Layering (Legacy Pattern)

Legacy pattern reparenting overlays to document.body via createPortal and global z-index scales—now superseded by native Browser Top Layer primitives.

Native Replacement
<dialog> Element and Native Top Layer

HTML primitive placing modals in the browser Top Layer above any z-index, with built-in focus management and Escape key handling.

Native showModal() replaces React createPortal and z-index hacks with engine-managed Top Layer and inert.