When an element has a border-shape (such as
circle(50px at 50px 50px)) the outline should follow that shape.
BorderShapePainter::PaintOutline() only handled
outline-style: solid and double; every other style
returned false and the rectangular outline painter took over, so
the outline drew an axis-aligned box around the element's border box instead of
following the shape.
Six targets, each a 100×100 element with
border-shape: circle(50px at 50px 50px) and a different
outline-style. Captured with
headless_shell, one build at
origin/main and one with the patch applied.
Each card renders live in your browser (Rendered), next to the
pre-fix (Before) and post-fix (After) baselines. On a
build with the fix, Rendered should match After; on
pre-fix Chrome it matches Before.












<div style="width:100px; height:100px; background:lightblue;
border-shape: circle(50px at 50px 50px);
outline: 10px dotted hotpink;"></div>
Pre-fix Chrome paints a dotted rectangle around the 100×100 border box; with the patch the outline follows the circle. Full demo: demo.html.
CL 8777667 · Issue 582385059 · CSS Borders 4 - border-shape · CSS UI - outline