An asymmetric concave top-left corner is combined with an outline offset and a zero-blur box-shadow spread. Before the fix, the calculated miter escaped the target edge and produced a long stray segment.
Fixed output captured from the locally built Chromium content_shell at device scale factor 1.
div {
width: 80px;
height: 80px;
background: red;
border-top-left-radius: 10px 50px;
corner-top-left-shape: superellipse(-0.5);
outline: 5px solid currentColor;
outline-offset: 20px;
box-shadow: 0 0 0 15px green;
}
PathBuilder::AddContouredRect() now clamps each calculated miter intersection to the corresponding target edge segment. The same geometry path covers outline offsets and shadow spread.