Bug 216780

Summary: currentColor isn't recalculated when a text node doesn't exist
Product: WebKit Reporter: Cory LaViska <cory>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, graouts, koivisto, kondapallykalyan, pdr, simon.fraser, timothy, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsfiddle.net/6tkyor3x/
Attachments:
Description Flags
patch
none
patch
none
patch ews-feeder: commit-queue-

Description Cory LaViska 2020-09-21 08:24:00 PDT
When an element doesn't contain a text node and currentColor is used for background-color, outline, and possibly other properties, the value isn't recalculated when the color changes.

This fiddle demonstrates the bug in a few lines of code. https://jsfiddle.net/6tkyor3x/
Comment 1 Cory LaViska 2020-09-21 08:24:42 PDT
This affects Safari version 14.0 (15610.1.28.1.9, 15610).
Comment 2 Timothy Hatcher 2020-09-21 08:38:10 PDT
*** Bug 216782 has been marked as a duplicate of this bug. ***
Comment 3 Radar WebKit Bug Importer 2020-09-21 12:45:31 PDT
<rdar://problem/69320933>
Comment 4 Antti Koivisto 2020-09-24 02:25:26 PDT
Style is computed correctly but we fail to repaint.
Comment 5 Antti Koivisto 2020-09-24 03:38:55 PDT
Created attachment 409550 [details]
patch
Comment 6 Antti Koivisto 2020-09-24 04:52:13 PDT
Created attachment 409556 [details]
patch
Comment 7 Antti Koivisto 2020-09-24 04:54:33 PDT
Created attachment 409558 [details]
patch
Comment 8 EWS 2020-09-24 06:21:17 PDT
Committed r267528: <https://trac.webkit.org/changeset/267528>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 409558 [details].