Skip to content

[css-borders-4][border-shape] Miter limit for border-shape paths is not specified #14952

Backlog

Description

@smfr

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.

Chromium code has this comment:

// 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

  1. smfr commented on Dec 4, 2026

    @smfr
    ContributorAuthor
  2. noamr commented on Dec 4, 2026

    @noamr
    Collaborator

    Agreed this should be specified and this WPT landed without spec backing
    Traced to https://issues.chromium.org/issues/539636521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions