Back to the index.
Transitions only work on CSS declarations that have a numerical value; such as left: 20px
to left: 200px
. However, there are a few cases where a CSS declaration may have an implied value. This
page discusses and tests them.
This is the desktop table. See also the mobile table.
Click or touch the test elements. If they change styles immediately, transitions are not supported on the indicated CSS declaration. Instead, they should change slowly.
Then click or touch the test element again. It should transition back in most circumstances.
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac | ||||
background-color
Test
|
- | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
All browsers interpet |
|||||||||||||||||||
border
Test
|
- | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
When doing the test you’ll see that all browsers handle the first one, from none to a border, correctly, but don’t do the second one, from border to none, at all. What’s going on here is that the first transition sets the When going the other way, the Thus, although the test may seem to have weird effects, the browsers actually do the right thing. |
|||||||||||||||||||
left
Test
Should not work
|
- | No | No | Incor |
No | No | No | ||||||||||||
The default left value is not 0 but auto , which is not a numerical value and thus untransitionable. Safari’s interpretation of auto = 0 is incorrect. |
|||||||||||||||||||
letter-spacing
Test
|
- | Yes | No | Yes | Yes | Yes | Yes | ||||||||||||
The default |
|||||||||||||||||||
outline
Test
|
- | No | Incom |
Yes | Yes | Yes | Yes | ||||||||||||
However, Firefox doesn’t transition |
|||||||||||||||||||
padding-top
Test
|
- | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||||
|
|||||||||||||||||||
text-indent
Test Test Test Test Test Test Test Test
|
- | No | Yes | Yes | Yes | Yes | Yes | ||||||||||||
|
|||||||||||||||||||
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac |
Desktop browser test array 2.0.2; October 2014