Closed Bug 2092590 Opened 19 days ago Closed 14 days ago

[wpt-sync] Sync PR 64597 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322658

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 64597 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64597
Details from upstream follow.

Simon Fraser <simon.fraser@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=322658

WebKit export from bug: [<!---->corner-<!---->shape]<!----> Incorrect rendering when inner corners intersect

<pre>
[corner-shape] Incorrect rendering when inner corners intersect

With larger border thickness and border-radius, adjacent corners of the inner border edge can intesect,
causing bad rendering with overlapping and holes.

Fix by implementing logic to intersect bezier paths, but we only need to support the simple, monotonic curves
that are used by corner-shape. addSuperellipseCornerCurves calls functions in CornerShapeUtilities to do this.
The intersection logic uses a recursive function (appendCurveCrossings()) with a depth limit.

Even non-adjacent corners can intersect (see inner-corner-intersection003.html), which addSuperellipseCornerCurves()
handles.

Add API tests for the Bezier functions. BezierUtilitiesTests.cpp wasn't being compiled at all, so add it
to the target.

Based on work by Lilly Le (@cupidsity).

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=322658">https://bugs.webkit.org/show_bug.cgi?id=322658</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/320287@main">https://commits.webkit.org/320287@main</a>
</pre>

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 179 tests and 23 subtests

Status Summary

Firefox

OK : 19
PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 878[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 891[Gecko-linux2404-64-debug] 976[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 977[Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 3[GitHub] 107[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 167[Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 168[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 253[Gecko-linux2404-64-debug]

Chrome

FAIL: 3

Safari

PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: