You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-borders-4][border-shape] Miter limit for border-shape paths is not specified #14952
There's a WPT for border-shape miter limit at css/css-borders/border-shape/border-shape-shape-arc-miter-limit.html, but there's no spec text that says what the miter limit for shapes should be.
// The default miter limit of 4.0 is suitable for shapes containing curves or
// arcs (such as shape() and path() with curved segments) to prevent huge miter
// spikes at sharp cusps. For purely linear polygon shapes, however, we use a
// large finite miter limit so acute polygon corners remain sharp miters
// rather than being cut off into bevels.
// Note: using an infinite or maximum float miter limit is not supported
// by Skia, as squaring it during internal miter length calculations causes
// floating-point overflow and fails internal finiteness validation checks.
constexpr float kBorderShapePolygonMiterLimit = 1e10f;
Activity
smfr commentedon Dec 4, 2026
cc @noamr
noamr commentedon Dec 4, 2026
Agreed this should be specified and this WPT landed without spec backing
Traced to https://issues.chromium.org/issues/539636521