Support closest-corner/farthest-corner in clip-path circle()/ellipse() [chromium/src : main]

0 views
Skip to first unread message

Hyowon Kim (Gerrit)

unread,
2:27 AM (9 hours ago) 2:27 AM
to Daniil Sakhapov, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, Menard, Alexis, android-bu...@system.gserviceaccount.com, apavlo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org
Attention needed from Daniil Sakhapov

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Daniil Sakhapov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I87d757813ea0c1065a8cbcca9f46396af217a8aa
Gerrit-Change-Number: 7754379
Gerrit-PatchSet: 4
Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
Gerrit-Reviewer: Daniil Sakhapov <sakh...@chromium.org>
Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Daniil Sakhapov <sakh...@chromium.org>
Gerrit-Comment-Date: Tue, 14 Apr 2026 06:27:19 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniil Sakhapov (Gerrit)

unread,
4:51 AM (7 hours ago) 4:51 AM
to Hyowon Kim, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, Menard, Alexis, android-bu...@system.gserviceaccount.com, apavlo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org
Attention needed from Hyowon Kim

Daniil Sakhapov added 2 comments

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Daniil Sakhapov . unresolved

I think we need a feature flag for this one

File third_party/blink/renderer/core/style/basic_shapes.cc
Line 109, Patchset 4 (Latest):float CornerDistance(const gfx::PointF& center,
const gfx::SizeF& box_size,
bool closest) {
const gfx::RectF rect(box_size);
const std::array<gfx::PointF, 4> corners = {
rect.origin(), rect.top_right(), rect.bottom_right(), rect.bottom_left()};

float distance = (center - corners[0]).Length();
for (unsigned i = 1; i < std::size(corners); ++i) {
float new_distance = (center - corners[i]).Length();
if (closest ? new_distance < distance : new_distance > distance) {
distance = new_distance;
}
}
return distance;
}
Daniil Sakhapov . unresolved

looking at - https://drafts.csswg.org/css-images-3/#valdef-radial-extent-closest-corner - it seems to be wrong for the circle()/ellipse() case?

Open in Gerrit

Related details

Attention is currently required from:
  • Hyowon Kim
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I87d757813ea0c1065a8cbcca9f46396af217a8aa
    Gerrit-Change-Number: 7754379
    Gerrit-PatchSet: 4
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Daniil Sakhapov <sakh...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-Attention: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Comment-Date: Tue, 14 Apr 2026 08:50:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages