RESOLVED CONFIGURATION CHANGED 202334
Using a combination of var() and color() and transitions fails to work, causes high CPU load
https://bugs.webkit.org/show_bug.cgi?id=202334
Summary Using a combination of var() and color() and transitions fails to work, cause...
Ali Bosworth
Reported 2019-09-27 14:23:00 PDT
In our web-app we are trying to define some colors as both normal RGB values and wide-gamut via `color(display-p3....)`. We are hitting a situation where the color is not rendered at all. We've reproduced as a test case and it seems to require the following factors: CSS variables being set and used + color() definition + transition on the element. In our web-app it fails in that situation however, frustratingly, in our test-case it also requires the dev tools pane to be open as well. Moving the style definitions inline into the test case also causes it to not break. Here is the test case: https://mellow-blanket.glitch.me Reproduction: 1) Open https://mellow-blanket.glitch.me in Safari 2) Open dev tools Expected: all squares have a blue background Result: 7th square has no background I found an existing reference to this issue here: https://twitter.com/eldh/status/1170420603402240002
Attachments
Ali Bosworth
Comment 1 2019-09-27 15:37:42 PDT
Addendum: we noticed that loading the test case causes constant high CPU load.
Radar WebKit Bug Importer
Comment 2 2019-09-29 15:04:37 PDT
Ali Bosworth
Comment 3 2020-04-22 17:22:36 PDT
No updates on this? It is a dealbreaker for any site trying use dynamic themes, which must be common today with darkmode support. Simon Fraser: is there any way to get some more eyes on this?
Simon Fraser (smfr)
Comment 4 2020-04-22 21:25:28 PDT
Perhaps Antti can help.
Ali Bosworth
Comment 5 2020-04-22 22:22:37 PDT
Thanks kindly Simon!
Tyler Wilcock
Comment 6 2020-09-19 21:40:44 PDT
I can't reproduce this with Safari Version 14.0 (15610.1.28.1.9, 15610) nor the GTK mini-browser built from trunk. Ali, can you confirm whether or not this is fixed for you?
Antoine Quint
Comment 7 2023-05-10 12:53:22 PDT
I think we should close this, I cannot reproduce this either with Safari 16.
Note You need to log in before you can comment on or make changes to this bug.