WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
79487
Background-position doesn't transition when using different units for each state
https://bugs.webkit.org/show_bug.cgi?id=79487
Summary
Background-position doesn't transition when using different units for each state
Thijs Reijgersberg
Reported
2012-02-24 07:26:12 PST
When setting the background position in one unit and on :hover on a different unit webkit doesn't transition the background-position change. See
http://dabblet.com/gist/1900938
for a test case. The colour transitions properly but the background position jumps from one state to the next. When declaring both background position declarations in the same unit webkit does transition the background position properly.
Attachments
Test
(433 bytes, text/html)
2024-05-21 02:53 PDT
,
Antoine Quint
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Shane Stephens
Comment 1
2012-02-29 19:51:43 PST
It's not currently possible to transition between unit types (here you're transitioning between a percentage and a length). Although this limitation isn't explicit in the specification (
http://www.w3.org/TR/css3-transitions/
) it is implied. Note that the CSSWG is currently considering whether and how to handle transitions between unit types. For now I've marked this bug as an enhancement request.
mic.gallego
Comment 2
2021-05-20 22:24:43 PDT
Is there some news about this? I am experimenting the same issues. Every other browsers are able to transition this properly.
Ahmad Saleem
Comment 3
2024-05-17 13:07:40 PDT
We don't have wayback archive copy for this - this is only link:
https://web.archive.org/web/20140808022946/https://dabblet.com/gist/1900938
and it seems to not load properly. I am not sure if we have fixed this bug or not or this exist or not but nothing more can be done without test case. @Karl & @Antoine - Any input or we should mark this as 'RESOLVED CONFIGURATION CHANGED'?
Antoine Quint
Comment 4
2024-05-21 02:53:25 PDT
Created
attachment 471461
[details]
Test Attaching an example that animates "background-position" between a length and a percentage and checking that it triggers a transition.
Antoine Quint
Comment 5
2024-05-21 02:53:39 PDT
The attached example triggers a transition in all browsers I've tested. I think we can close this.
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