Closed Bug 2080454 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63485 - Let CSSParser::ParseFont() parse the shorthand directly

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Let CSSParser::ParseFont() parse the shorthand directly

This drops support for CSS wide keywords and pending substitution
values, which were already being dropped after parsing.

Avoids arbitrary declaration parsing in @supports which may access
cross thread access to static Persistent in GetUACounterStyleMap().

This fixes a UAF issue when the singleton was created on an off-main
thread and later accessed from the main thread.

Bug: 568832157
Change-Id: I8793cee34fc032c43918599acc52f65a5ed1c039
Reviewed-on: https://chromium-review.googlesource.com/8525429
WPT-Export-Revision: 1facb21594b9df167d1c0725416c2152a7f64abe

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

CI Results

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

Total 313 tests and 1 subtests

Status Summary

Firefox

OK : 3[GitHub] 312[Gecko-windows11-64-25h2-debug] 313[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-opt]
PASS: 3[GitHub] 261[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 263[Gecko-windows11-64-25h2-debug] 264[Gecko-windows11-64-25h2-opt]
FAIL: 225[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 228[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]

Chrome

OK : 3
PASS: 3

Safari

OK : 3
PASS: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/canvas/element/text/2d.text.draw.fontface.repeat.html [wpt.fyi]: OK [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-opt], SKIP [Gecko-windows11-64-25h2-debug]
  • /html/canvas/element/text/2d.text.font.parse.system.html [wpt.fyi]
    • System fonts must be computed to explicit values: FAIL
  • /html/canvas/element/text/2d.text.measure.actualBoundingBox.small-font.html [wpt.fyi]
    • Testing that actualBoundingBox metrics are precise at small font sizes: FAIL [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt], PASS [Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
  • /html/canvas/element/text/2d.text.measure.fillTextCluster-options.tentative.html [wpt.fyi]
    • Test that fillTextCluster() correctly applies the options passed as a dictionary.: FAIL
  • /html/canvas/element/text/2d.text.measure.fillTextCluster-range.tentative.html [wpt.fyi]
    • Test that getTextClusters() and fillTextCluster() correctly render different ranges of the input text.: FAIL
  • /html/canvas/element/text/2d.text.measure.getActualBoundingBox-exceptions.tentative.html [wpt.fyi]
    • Check that TextMetrics::getActualBoundingBox() throws when using invalid indexes.: FAIL
  • /html/canvas/element/text/2d.text.measure.getActualBoundingBox-full-text.tentative.html [wpt.fyi]
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction ltr and no-directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction rtl and no-directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction ltr and directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction rtl and directional-override: FAIL
  • /html/canvas/element/text/2d.text.measure.getActualBoundingBox.tentative.html [wpt.fyi]
    • Test TextMetrics::getActualBoundingBox(), with text align left , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align center , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align right , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align left , and 10px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align center , and 10px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align right , and 10px letter spacing.: FAIL
  • /html/canvas/element/text/2d.text.measure.index-from-offset-edge-cases.tentative.html [wpt.fyi]
    • Test the edge cases for getIndexFromOffset, where the point is at the edge of glyph and at the midpoint.: FAIL
  • /html/canvas/element/text/2d.text.measure.index-from-offset-edges.tentative.html [wpt.fyi]
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align left.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align left.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align center.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align center.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align right.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align right.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align start.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align start.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align end.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align end.: FAIL
  • /html/canvas/element/text/2d.text.measure.index-from-offset.tentative.html [wpt.fyi]
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and directional-override.: FAIL
  • /html/canvas/element/text/2d.text.measure.selection-rects-baselines.tentative.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() works correctly with textBaseline.: FAIL
  • /html/canvas/element/text/2d.text.measure.selection-rects-exceptions.tentative.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() throws when using invalid indexes.: FAIL
  • /html/canvas/element/text/2d.text.measure.selection-rects.tentative.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 10px letter spacing, and directional-override.: FAIL
  • /html/canvas/element/text/2d.text.measure.strokeTextCluster-options.tentative.html [wpt.fyi]
    • Test that strokeTextCluster() correctly applies the options passed as a dictionary.: FAIL
  • /html/canvas/element/text/2d.text.measure.strokeTextCluster-range.tentative.html [wpt.fyi]
    • Test that getTextClusters() and strokeTextCluster() correctly render different ranges of the input text.: FAIL
  • /html/canvas/element/text/2d.text.measure.text-clusters-exceptions.tentative.html [wpt.fyi]
    • Check that TextMetrics::getTextClusters() throws when using invalid indexes.: FAIL
  • /html/canvas/element/text/2d.text.measure.text-clusters-position.tentative.html [wpt.fyi]
    • Test that TextMetrics::getTextClusters() returns clusters that are positioned according to the target align and baseline passed as options.: FAIL
  • /html/canvas/element/text/2d.text.measure.text-clusters-split.tentative.html [wpt.fyi]
    • Test that getTextClusters() splits the input correctly into the minimal clusters, keeping emojis together.: FAIL
  • /html/canvas/element/text/2d.text.measure.width.nullCharacter.html [wpt.fyi]
    • Null character does not take up space: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.small-font.html [wpt.fyi]
    • Testing that actualBoundingBox metrics are precise at small font sizes: FAIL [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt], PASS [Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
  • /html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.small-font.worker.html [wpt.fyi]
    • Testing that actualBoundingBox metrics are precise at small font sizes: FAIL [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt], PASS [Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
  • /html/canvas/offscreen/text/2d.text.measure.fillTextCluster-options.tentative.html [wpt.fyi]
    • Test that fillTextCluster() correctly applies the options passed as a dictionary.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.fillTextCluster-options.tentative.worker.html [wpt.fyi]
    • Test that fillTextCluster() correctly applies the options passed as a dictionary.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.fillTextCluster-range.tentative.html [wpt.fyi]
    • Test that getTextClusters() and fillTextCluster() correctly render different ranges of the input text.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.fillTextCluster-range.tentative.worker.html [wpt.fyi]
    • Test that getTextClusters() and fillTextCluster() correctly render different ranges of the input text.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox-exceptions.tentative.html [wpt.fyi]
    • Check that TextMetrics::getActualBoundingBox() throws when using invalid indexes.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox-exceptions.tentative.worker.html [wpt.fyi]
    • Check that TextMetrics::getActualBoundingBox() throws when using invalid indexes.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox-full-text.tentative.html [wpt.fyi]
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction ltr and no-directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction rtl and no-directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction ltr and directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction rtl and directional-override: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox-full-text.tentative.worker.html [wpt.fyi]
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction ltr and no-directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction rtl and no-directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction ltr and directional-override: FAIL
    • Test TextMetrics::getActualBoundingBox() for the full length of the string for some edge cases, with direction rtl and directional-override: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox.tentative.html [wpt.fyi]
    • Test TextMetrics::getActualBoundingBox(), with text align left , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align center , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align right , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align left , and 10px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align center , and 10px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align right , and 10px letter spacing.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.getActualBoundingBox.tentative.worker.html [wpt.fyi]
    • Test TextMetrics::getActualBoundingBox(), with text align left , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align center , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align right , and 0px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align left , and 10px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align center , and 10px letter spacing.: FAIL
    • Test TextMetrics::getActualBoundingBox(), with text align right , and 10px letter spacing.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.index-from-offset-edge-cases.tentative.html [wpt.fyi]
    • Test the edge cases for getIndexFromOffset, where the point is at the edge of glyph and at the midpoint.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.index-from-offset-edge-cases.tentative.worker.html [wpt.fyi]
    • Test the edge cases for getIndexFromOffset, where the point is at the edge of glyph and at the midpoint.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.index-from-offset-edges.tentative.html [wpt.fyi]
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align left.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align left.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align center.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align center.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align right.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align right.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align start.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align start.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align end.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align end.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.index-from-offset-edges.tentative.worker.html [wpt.fyi]
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align left.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align left.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align center.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align center.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align right.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align right.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align start.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align start.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction ltr and text align end.: FAIL
    • Check that TextMetrics::getIndexFromOffset() gives correct edges when the requested point is outside the range, with direction rtl and text align end.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.index-from-offset.tentative.html [wpt.fyi]
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and no-directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 0px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align left, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align left, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align center, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align center, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align right, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align right, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align start, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align start, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction ltr, text align end, 10px letter spacing and directional-override.: FAIL
    • Check that TextMetrics::getIndexFromOffset() matches its DOM equivalent, where possible, with direction rtl, text align end, 10px letter spacing and directional-override.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.selection-rects-baselines.tentative.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() works correctly with textBaseline.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.selection-rects-baselines.tentative.worker.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() works correctly with textBaseline.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.selection-rects-exceptions.tentative.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() throws when using invalid indexes.: FAIL
  • /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
  • /html/canvas/offscreen/text/2d.text.measure.selection-rects.tentative.html [wpt.fyi]
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 0px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 10px letter spacing, and no-directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 0px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align left, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align left, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align center, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align center, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction ltr, text align right, 10px letter spacing, and directional-override.: FAIL
    • Check that TextMetrics::getSelectionRects() matches its DOM equivalent, with direction rtl, text align right, 10px letter spacing, and directional-override.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.strokeTextCluster-options.tentative.html [wpt.fyi]
    • Test that strokeTextCluster() correctly applies the options passed as a dictionary.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.strokeTextCluster-options.tentative.worker.html [wpt.fyi]
    • Test that strokeTextCluster() correctly applies the options passed as a dictionary.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.strokeTextCluster-range.tentative.html [wpt.fyi]
    • Test that getTextClusters() and strokeTextCluster() correctly render different ranges of the input text.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.strokeTextCluster-range.tentative.worker.html [wpt.fyi]
    • Test that getTextClusters() and strokeTextCluster() correctly render different ranges of the input text.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.text-clusters-exceptions.tentative.html [wpt.fyi]
    • Check that TextMetrics::getTextClusters() throws when using invalid indexes.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.text-clusters-exceptions.tentative.worker.html [wpt.fyi]
    • Check that TextMetrics::getTextClusters() throws when using invalid indexes.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.text-clusters-position.tentative.html [wpt.fyi]
    • Test that TextMetrics::getTextClusters() returns clusters that are positioned according to the target align and baseline passed as options.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.text-clusters-position.tentative.worker.html [wpt.fyi]
    • Test that TextMetrics::getTextClusters() returns clusters that are positioned according to the target align and baseline passed as options.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.text-clusters-split.tentative.html [wpt.fyi]
    • Test that getTextClusters() splits the input correctly into the minimal clusters, keeping emojis together.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.text-clusters-split.tentative.worker.html [wpt.fyi]
    • Test that getTextClusters() splits the input correctly into the minimal clusters, keeping emojis together.: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.width.nullCharacter.html [wpt.fyi]
    • Null character does not take up space: FAIL
  • /html/canvas/offscreen/text/2d.text.measure.width.nullCharacter.worker.html [wpt.fyi]
    • Null character does not take up space: FAIL

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a1e221289625 https://hg.mozilla.org/integration/autoland/rev/b83e1ff265a0 [wpt PR 63485] - Let CSSParser::ParseFont() parse the shorthand directly, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.