Closed Bug 1856370 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42282 - Fix "slicing" of outer box-shadows for inline fragments

Categories

(Core :: Layout: Images, Video, and HTML Frames, task, P4)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Fredrik Söderquist <fs@opera.com> wrote:

Fix "slicing" of outer box-shadows for inline fragments

For outer box-shadows the shadow shape was not adjusted to take any
effects from "slicing" - i.e where an inline continues from a previous
line - into account, which resulted in incorrect rendering of the shadow
on those edges.

Reuse the existing AdjustRectForSideClipping() to perform this
adjustment, and refactor the clipping code slightly to clip correctly
for each shadow (it previously only applied for the first rendered
shadow).

Update a couple of tests that were previously incorrect.

Fixed: 1488440
Change-Id: If23b1d8095cef6d88ee808e4af3619a0ac70e9a3

Reviewed-on: https://chromium-review.googlesource.com/4900525
WPT-Export-Revision: 6b8d78123f7b866d378729f4827cac177b52c2e6

Component: web-platform-tests → Layout: Images, Video, and HTML Frames
Product: Testing → Core

CI Results

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

Total 4 tests

Status Summary

Firefox

FAIL: 4

Chrome

FAIL: 4

Safari

PASS: 2
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6b550cbc7ff0 [wpt PR 42282] - Fix "slicing" of outer box-shadows for inline fragments, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.