[wpt-sync] Sync PR 46420 - Change the input format semantics for TextMetrics::getSelectionRects()
Categories
(Core :: Graphics: Canvas2D, task, P4)
Tracking
()
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 forgetSelectionRects
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
Assignee | ||
Comment 1•6 months ago
|
||
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 2•6 months ago
|
||
Assignee | ||
Comment 3•6 months ago
|
||
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
- /html/canvas/offscreen/text/2d.text.measure.selection-rects-baselines.tentative.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() works correctly with textBaseline.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() works correctly with textBaseline.:
- /html/canvas/element/text/2d.text.measure.selection-rects-baselines.tentative.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() works correctly with textBaseline.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() works correctly with textBaseline.:
- /html/canvas/offscreen/text/2d.text.measure.selection-rects-baselines.tentative.worker.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() works correctly with textBaseline.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() works correctly with textBaseline.:
- /html/canvas/element/text/2d.text.measure.selection-rects-exceptions.tentative.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() throws when using invalid indexes.:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() throws when using invalid indexes.:
- /html/canvas/element/text/2d.text.measure.selection-rects.tentative.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() matches its DOM equivalent.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() matches its DOM equivalent.:
- /html/canvas/offscreen/text/2d.text.measure.selection-rects-exceptions.tentative.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() throws when using invalid indexes.:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() throws when using invalid indexes.:
- /html/canvas/offscreen/text/2d.text.measure.selection-rects-exceptions.tentative.worker.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() throws when using invalid indexes.:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() throws when using invalid indexes.:
- /html/canvas/offscreen/text/2d.text.measure.selection-rects.tentative.html [wpt.fyi]
- Check that TextMetrics::getSelectionRects() matches its DOM equivalent.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Check that TextMetrics::getSelectionRects() matches its DOM equivalent.:
Comment 5•6 months ago
|
||
bugherder |
Description
•