Closed Bug 2094530 Opened 12 days ago Closed 9 days ago

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

Categories

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

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

lilly <173393835+cupidsity@users.noreply.github.com> wrote:

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

WebKit export from bug: corner-<!---->shape:<!----> adopt the revised contoured-<!---->path algorithm

<pre>
corner-shape: adopt the revised contoured-path algorithm

Offsetting a shaped corner outward picked between several constructions
based on the corner's shape, and they disagreed with one another. They
coincided only for a plain round corner with a single radius, so the damage
showed up on non-round shapes and on elliptical radii

This replaces them with the single construction from the revised algorithm,
which scales the offset normal per-axis by the two corner radii so an
elliptical corner keeps its shape when offset. box-shadow spread now uses
that same construction, so a shadow and an outline at the same distance stay
parallel rather than pinching together at the corners.

Adopted algorithm from <a href="https://github.com/w3c/csswg-drafts/pull/14142">https://github.com/w3c/csswg-drafts/pull/14142</a>

Upstream's totalPixels for these three tests is lower than what WebKit needs after this change, so this raises each to cover both; maxDifference is unchanged.

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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 3 tests

Status Summary

Firefox

PASS: 3

Chrome

PASS: 3

Safari

PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

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