Bug 216782 - background-color: currentColor does not work if `color` dynamically changes on empty elements
Summary: background-color: currentColor does not work if `color` dynamically changes o...
Status: RESOLVED DUPLICATE of bug 216780
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 14
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://jsfiddle.net/htx5kz7w/3/
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 08:32 PDT by Timothy Hatcher
Modified: 2020-09-21 08:38 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2020-09-21 08:32:47 PDT
The background should always be the same as the text color. In Safari, if no text is rendered in the container, the background doesn't get updated. Try changing the color and watch the empty div remain the same. See URL for a test case.
Comment 1 Timothy Hatcher 2020-09-21 08:38:10 PDT

*** This bug has been marked as a duplicate of bug 216780 ***