WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-03-11 13:34:48 PST
<
rdar://problem/30994786
>
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.
Top of Page
Format For Printing
XML
Clone This Bug