Closed Bug 1701705 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 28283 - Highlight API: Add support to the CSSParser for the ::highlight(...) syntax

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

b'Fernando Fiori <ffiori@microsoft.com>' wrote:

Highlight API: Add support to the CSSParser for the ::highlight(...) syntax

Bug: 1166727
Change-Id: I1acb7df619144bf4a5ff2fcfb4dc3ee752a76230
Reviewed-on: https://chromium-review.googlesource.com/2753338
WPT-Export-Revision: 140c095b22f6c1c4cb50745c1c419df758853e7c

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core
Component: Layout: Generated Content, Lists, and Counters → CSS Parsing and Computation

CI Results

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

Total 3 tests and 32 subtests

Status Summary

Firefox

OK : 3
PASS: 6
FAIL: 47

Chrome

OK : 3
PASS: 43
FAIL: 10

Safari

OK : 3
PASS: 43
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/css/css-highlight-api/highlight-pseudo-computed.html
getComputedStyle() for ::highlight(foo): should be element's default: FAIL
getComputedStyle() for ::highlight(foo)) should be element's default: FAIL
getComputedStyle() for ::highlight(foo)( should be element's default: FAIL
getComputedStyle() for ::highlight should be element's default: FAIL
getComputedStyle() for ::highlight(foo)(foo) should be element's default: FAIL
getComputedStyle() for ::highlight(foo)() should be element's default: FAIL
getComputedStyle() for :::highlight(foo) should be element's default: FAIL
getComputedStyle() for ::highlight(foo). should be element's default: FAIL
getComputedStyle() for ::highlight(foo,bar) should be element's default: FAIL
/css/css-pseudo/highlight-pseudos-computed.html
getComputedStyle() for ::selection: should be element's default: FAIL
getComputedStyle() for ::selection) should be element's default: FAIL
getComputedStyle() for ::selection( should be element's default: FAIL
getComputedStyle() for ::selection(foo) should be element's default: FAIL
getComputedStyle() for ::selection() should be element's default: FAIL
getComputedStyle() for :::selection should be element's default: FAIL
getComputedStyle() for ::selection. should be element's default: FAIL
getComputedStyle() for ::target-text: should be element's default: FAIL
getComputedStyle() for ::target-text) should be element's default: FAIL
getComputedStyle() for ::target-text( should be element's default: FAIL
getComputedStyle() for ::target-text(foo) should be element's default: FAIL
getComputedStyle() for ::target-text() should be element's default: FAIL
getComputedStyle() for :::target-text should be element's default: FAIL
getComputedStyle() for ::target-text. should be element's default: FAIL
getComputedStyle() for ::spelling-error: should be element's default: FAIL
getComputedStyle() for ::spelling-error) should be element's default: FAIL
getComputedStyle() for ::spelling-error( should be element's default: FAIL
getComputedStyle() for ::spelling-error(foo) should be element's default: FAIL
getComputedStyle() for ::spelling-error() should be element's default: FAIL
getComputedStyle() for :::spelling-error should be element's default: FAIL
getComputedStyle() for ::spelling-error. should be element's default: FAIL
getComputedStyle() for ::grammar-error: should be element's default: FAIL
getComputedStyle() for ::grammar-error) should be element's default: FAIL
getComputedStyle() for ::grammar-error( should be element's default: FAIL
getComputedStyle() for ::grammar-error(foo) should be element's default: FAIL
getComputedStyle() for ::grammar-error() should be element's default: FAIL
getComputedStyle() for :::grammar-error should be element's default: FAIL
getComputedStyle() for ::grammar-error. should be element's default: FAIL

New Tests That Don't Pass

/css/css-highlight-api/highlight-pseudo-computed.html
getComputedStyle() for ::highlight(foo): FAIL (Chrome: FAIL, Safari: FAIL)
Different getComputedStyle() for ::highlight(bar) and same element: FAIL (Chrome: FAIL, Safari: FAIL)
getComputedStyle() for ::highlight(foo): should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight(foo)) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight(foo)( should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight(foo)(foo) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight(foo)() should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for :::highlight(foo) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight(foo). should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::highlight(foo,bar) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
/css/css-highlight-api/highlight-pseudo-parsing.html
"::highlight(foo)" should be a valid selector: FAIL (Chrome: FAIL, Safari: FAIL)
".a::highlight(foo)" should be a valid selector: FAIL (Chrome: FAIL, Safari: FAIL)
"div ::highlight(foo)" should be a valid selector: FAIL (Chrome: FAIL, Safari: FAIL)
"::part(my-part)::highlight(foo)" should be a valid selector: FAIL (Chrome: FAIL, Safari: FAIL)
/css/css-pseudo/highlight-pseudos-computed.html
getComputedStyle() for ::selection: FAIL (Chrome: FAIL, Safari: FAIL)
getComputedStyle() for ::selection: should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::selection) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::selection( should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::selection(foo) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::selection() should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for :::selection should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::selection. should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::target-text: FAIL (Chrome: FAIL, Safari: FAIL)
getComputedStyle() for ::target-text: should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::target-text) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::target-text( should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::target-text(foo) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::target-text() should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for :::target-text should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::target-text. should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::spelling-error: FAIL (Chrome: FAIL, Safari: FAIL)
getComputedStyle() for ::spelling-error: should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::spelling-error) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::spelling-error( should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::spelling-error(foo) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::spelling-error() should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for :::spelling-error should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::spelling-error. should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::grammar-error: FAIL (Chrome: FAIL, Safari: FAIL)
getComputedStyle() for ::grammar-error: should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::grammar-error) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::grammar-error( should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::grammar-error(foo) should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::grammar-error() should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for :::grammar-error should be element's default: FAIL (Chrome: PASS, Safari: PASS)
getComputedStyle() for ::grammar-error. should be element's default: FAIL (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03325e4bdc2d [wpt PR 28283] - Highlight API: Add support to the CSSParser, a=testonly https://hg.mozilla.org/integration/autoland/rev/df0a0e0864d7 [wpt PR 28283] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.