RESOLVED CONFIGURATION CHANGED 169402
transition-duration doesn't work when using CSS variables
https://bugs.webkit.org/show_bug.cgi?id=169402
Summary transition-duration doesn't work when using CSS variables
rmmpaderes
Reported 2017-03-08 19:38:29 PST
As the title say, using a CSS variable for transition-duration doesn't work. However, if you use -webkit-transition-duration, it'll work fine. Here's a sample CSS: :root { --accent-color: green; --duration: 500ms; } .button { transition-duration: var(--duration); transition-property: color; // Adding -webkit-transition-duration works // -webkit-transition-duration: var(--duration); } .button:active { color: var(--accent-color); }
Attachments
Test (293 bytes, text/html)
2023-05-10 10:56 PDT, Antoine Quint
no flags
Radar WebKit Bug Importer
Comment 1 2017-03-11 13:34:48 PST
Antoine Quint
Comment 2 2023-05-10 10:56:50 PDT
Created attachment 466307 [details] Test Adding a test showing this now works as expected.
Note You need to log in before you can comment on or make changes to this bug.