Closed Bug 1898124 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 46420 - Change the input format semantics for TextMetrics::getSelectionRects()

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Andres Ricardo Perez <andresrperez@chromium.org> wrote:

Change the input format semantics for TextMetrics::getSelectionRects()

Update how the end index works for getSelectionRects from being
an inclusive limit on both sides, i.e. [start, end], to being exclusive
for the end limit, i.e. [start, end).

This way, we match the index semantics of the underlying
Font::SelectionRectForText() method that is used to calculate the
rects.

Bug: 341213359
Change-Id: I1a09bc256c9f04ae3ae974a587c3e732aa003a74
Reviewed-on: https://chromium-review.googlesource.com/5553293
WPT-Export-Revision: 473805d6a9551476b2bb5188571dbe99315fa7dc

PR 46420 applied with additional changes from upstream: 12f8a9095c895763d4165d93c80f04ae9bcd32a7
Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

CI Results

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

Total 8 tests and 1 subtests

Status Summary

Firefox

OK : 8
FAIL: 8

Chrome

OK : 8
PASS: 3
FAIL: 5

Safari

OK : 8
FAIL: 8

Links

Gecko CI (Treeherder)
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/36067e531920 [wpt PR 46420] - Change the input format semantics for TextMetrics::getSelectionRects(), a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.