Closed Bug 1906907 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 47057 - Implement Canvas TextMetrics::caretPositionFromPoint.

Categories

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

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Stephen Chenney <schenney@chromium.org> wrote:

Implement Canvas TextMetrics::caretPositionFromPoint.

This is one of the new methods behind the ExtendedTextMetrics
flag to support editing operations, in this case selection
and locating positions within the text to perform editing
operations.

The spec is in flux, this is a prototype, with the main features
being:

  • This should behave as close to document.caretPositionFromPoint
    as is feasible. But the chromium implementation has numerous
    issues around mixed bidi strings, and also differs in the
    preferred behavior for points at the extreme ends of the strings.
  • Points are always increasing left to right, regardless
    of the direction of the the text given by the canvas context,
    and zero is defined by the text-align property. This is expected
    to simplify implementation of functionality built on this method.
  • Points can be negative to allow the selection of positions to
    the left of the origin for drawing the string, as given by the
    text-align property.
  • Points outside the string to the left or right return the
    position of the farthest character on that end of the string.
    Due to bidi reordering, this may be the start or end of the
    string, or even something in the middle.
  • We do not attempt to resolve conflicts in position when the
    bidi direction changes, as is done in the document version of
    the method. The behavior in the document case is not
    interoperable and indeed the optimal behavior depends on the
    context in which the method will be used (e.g. selecting,
    cursor positioning while typing, etc.) Note this is an
    argument for exposing bidi run information to script.

Testing covers numerous bidi cases, with interior points and
endpoints. Effort was made to avoid non-interopable behavior
in document.caretPositionFromPoint.

Bug: 341213359
Change-Id: Iaf263308ff1bf49af7ab0d516717fb2345a05d5a
Reviewed-on: https://chromium-review.googlesource.com/5677324
WPT-Export-Revision: a9b1fea97fab5b4dd488a57335de5c7a5fdd83bb

PR 47057 applied with additional changes from upstream: 17c15757d2c4dac7c26b55f7f27e8759e936ed2e, afa39d59588ea2df24376b8e8295c2cbd01c6034
Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

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

Total 11 tests

Status Summary

Firefox

OK : 8
FAIL : 113
TIMEOUT: 1
ERROR : 2

Chrome

OK : 8
FAIL : 113
TIMEOUT: 1
ERROR : 2

Safari

OK : 8
FAIL : 113
TIMEOUT: 1
ERROR : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/canvas/element/text/2d.text.measure.caret-position-edge-cases.tentative.html [wpt.fyi]
    • Test the edge cases for caretPositionFromPoint, where the point is at the edge of glyph and at the midpoint.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/element/text/2d.text.measure.caret-position-edges.tentative.html [wpt.fyi]
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align left.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align left.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align center.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align center.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align right.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align right.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align start.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align start.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align end.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align end.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/element/text/2d.text.measure.caret-position.tentative.html [wpt.fyi]
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/element/text/2d.text.measure.getActualBoundingBox-exceptions.tentative.html [wpt.fyi]: ERROR (Chrome: ERROR, Safari: ERROR)
  • /html/canvas/offscreen/text/2d.text.measure.caret-position-edge-cases.tentative.html [wpt.fyi]
    • Test the edge cases for caretPositionFromPoint, where the point is at the edge of glyph and at the midpoint.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/offscreen/text/2d.text.measure.caret-position-edge-cases.tentative.worker.html [wpt.fyi]
    • Test the edge cases for caretPositionFromPoint, where the point is at the edge of glyph and at the midpoint.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/offscreen/text/2d.text.measure.caret-position-edges.tentative.html [wpt.fyi]
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align left.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align left.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align center.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align center.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align right.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align right.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align start.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align start.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align end.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align end.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/offscreen/text/2d.text.measure.caret-position-edges.tentative.worker.html [wpt.fyi]
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align left.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align left.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align center.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align center.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align right.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align right.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align start.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align start.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction ltr and text align end.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() gives correct edges when the requested point is outside the range, with direction rtl and text align end.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/offscreen/text/2d.text.measure.caret-position.tentative.html [wpt.fyi]
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and no-directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
    • Check that TextMetrics::caretPositionFromPoint() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and directional-override.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox-exceptions.tentative.html [wpt.fyi]: ERROR (Chrome: ERROR, Safari: ERROR)
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox-exceptions.tentative.worker.html [wpt.fyi]: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/af99cc0f2755 [wpt PR 47057] - Implement Canvas TextMetrics::caretPositionFromPoint., a=testonly https://hg.mozilla.org/integration/autoland/rev/c57f744021cb [wpt PR 47057] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.