Bug 245138

Summary: Some color related CSS properties are not properly initialized
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matthieu Dubet 2022-09-13 06:47:08 PDT
At least textFillColor, textStrokeColor, textDecorationColor, textEmphasisColor.

They all should have a proper initialization function in RenderStyle which should initialize them to currentcolor (per spec).

Currently, they don't have their own initialization function and default-initialized to Color {}, which is invalid and thus is later "interpreted" as currentcolor. This is working "by accident".
Comment 1 Matthieu Dubet 2022-09-13 06:50:54 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4308
Comment 2 EWS 2022-09-13 14:39:41 PDT
Committed 254458@main (466a830e85aa): <https://commits.webkit.org/254458@main>

Reviewed commits have been landed. Closing PR #4308 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-09-13 14:40:19 PDT
<rdar://problem/99889356>