Bug 264103

Summary: getComputedStyle() should work with functional pseudo-elements like ::highlight()
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: CSSAssignee: Anne van Kesteren <annevk>
Status: RESOLVED FIXED    
Severity: Normal CC: annevk, commit-queue, karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=243539
Bug Depends on: 269743    
Bug Blocks:    

Description Tim Nguyen (:ntim) 2023-11-02 11:26:23 PDT
Spec: https://www.w3.org/TR/css-pseudo-4/#getComputedStyle

WPT:
https://wpt.fyi/results/css/css-highlight-api?label=master&label=experimental&aligned&q=computed


Implementation notes:
Anywhere we take a PseudoId from CSSComputedStyleDeclaration to ComputedStyleExtractor to Element::computedStyle(), etc. we should pass a PseudoElementRequest instead of a PseudoId
CSSComputedStyleDeclaration would also need to convert from a String to a PseudoElementRequest instead of PseudoId
Comment 1 Radar WebKit Bug Importer 2023-11-02 11:26:38 PDT
<rdar://problem/117864743>
Comment 2 Anne van Kesteren 2024-01-02 01:45:38 PST
The parser side of this we want to do in CSSSelector::parseStandalonePseudoElement these days.
Comment 3 Anne van Kesteren 2024-02-15 06:17:20 PST
Pull request: https://github.com/WebKit/WebKit/pull/24510
Comment 4 EWS 2024-02-16 10:00:33 PST
Committed 274846@main (2a9c86135d14): <https://commits.webkit.org/274846@main>

Reviewed commits have been landed. Closing PR #24510 and removing active labels.
Comment 5 WebKit Commit Bot 2024-02-19 13:06:09 PST
Re-opened since this is blocked by bug 269743
Comment 6 Anne van Kesteren 2024-02-20 10:24:56 PST
Pull request: https://github.com/WebKit/WebKit/pull/24824
Comment 7 EWS 2024-02-20 13:52:34 PST
Committed 275068@main (494280aef6da): <https://commits.webkit.org/275068@main>

Reviewed commits have been landed. Closing PR #24824 and removing active labels.
Comment 8 Anne van Kesteren 2024-02-26 06:01:06 PST
*** Bug 269416 has been marked as a duplicate of this bug. ***