Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS -moz-transition needs a unit assigned to a zero value?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33230

    I recently discovered that Firefox will ignore -moz-transition: all 0 ease; due to the fact that the 0 has no unit declared. Changing it to -moz-transition: all 0s ease; fixes the issue but then CSS Lint makes you feel like a small child for specifying a unit on a 0 value!

    Anyone else have this issue? Any idea why it is happening?

    #82085
    Akuseru
    Participant

    Why you would use 0s in a transition?

    #82526
    Akuseru
    Participant

    @sldr Nice buttons, looks fantastic.

    Again, with the 0s transition there is none transition… Instead of use 0s you can use none, (test). Also in Firefox you can use none to eliminate the transition when pressed.

    This work for you?

    #82543
    wolfcry911
    Participant

    why declare it in the first place? 0, none, or not declared – it’s all the same…

    #82741
    Akuseru
    Participant

    Well @sl1dr There is a difference between this rules, “transition” will accept “none”, and it’s fine. Ah, I ignored the -moz- and -o- prefix because I was in Safari ;)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.