Closed Bug 1760395 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33269 - FloatRoundedRect::OutsetForShapeMargin()

Categories

(Core :: Layout: Floats, task, P4)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Xianzhu Wang <wangxianzhu@chromium.org> wrote:

FloatRoundedRect::OutsetForShapeMargin()

It's different from Outset() in that it can make sharp corners
(radius=0) rounded (radius=shape_margin). This conforms to the
spec [1]:

This defines a new shape that is the smallest contour (in the
shrink-wrap sense) that includes all the points that are the
shape-margin distance outward in the perpendicular direction from
a point on the underlying shape.

[1] https://drafts.csswg.org/css-shapes/#shape-margin-property

Bug: 1305037
Change-Id: Iaafae94209a5413d0718076919c570a135f66ac1
Reviewed-on: https://chromium-review.googlesource.com/3516733
WPT-Export-Revision: 5363119d04fc0f6ce037d4fd870b6a0e477df775

Component: web-platform-tests → Layout: Floats
Product: Testing → Core

CI Results

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

Total 5 tests

Status Summary

Firefox

PASS: 2
FAIL: 3

Chrome

FAIL: 5

Safari

PASS: 1
FAIL: 4

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/css/css-shapes/shape-outside/shape-box/shape-outside-border-box-003.html: FAIL (Chrome: FAIL, Safari: FAIL)
/css/css-shapes/shape-outside/shape-box/shape-outside-content-box-003.html: FAIL (Chrome: FAIL, Safari: FAIL)
/css/css-shapes/shape-outside/shape-box/shape-outside-padding-box-003.html: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/18f0f0420ec8
[wpt PR 33269] - FloatRoundedRect::OutsetForShapeMargin(), a=testonly
https://hg.mozilla.org/integration/autoland/rev/ce2139bac1be
[wpt PR 33269] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.