A container can query a custom property's value instead of its size — unlike every other demo here, this box isn't resizable. Click the toggle below instead: the badge reads the container's own --variant token via @container style(), no JavaScript involved. Baseline since May 2026, so it's the newest feature in this lab.
This badge's shape and color come entirely from the container's --variant custom property, matched by @container style(--variant: accent).