.css does not update in firefox? works in chrome and safari

.css does not update in firefox? works in chrome and safari

Here is a small demo of a iphone like checkbox I want to use in some forms.

the problem is the .css({'background-position-y':'0px'}) or .css('background-position-y', '0px'); won't work in firefox?

  1. <html>
  2.     <head>
  3.         <style type="text/css">
  4.             ul.check-box li{
  5.                 list-style:none inside none;
  6.                 v-align: center;
  7.             }
  8.             li.on-off{
  9.                 background: url("http://static.blacknight.ie/gibo/images/checkbox_on_off.png") no-repeat scroll 0 -1.7em transparent;
  10.                 padding-bottom: 1.7em;
  11.                 padding-left:7em;
  12.                 width:0em;
  13.             }
  14.             input.icheckbox { display:none; }
  15.         </style>
  16.         <script type="text/javascript" src="http://static.blacknight.ie/gibo/js/jquery.min.js"></script>
  17.         <script type="text/javascript">
  18.             $(document).ready(function (){
  19.                 $('li.icheckbox').click(function(){
  20.                     
  21.                     if( $(this).hasClass('on') ) {
  22.                         $(this).css('background-position-y', '0px');
  23.                         $(this).removeClass('on');
  24.                         $(this).children('input[type="checkbox"]').attr('checked', '');
  25.                     } else {
  26.                         $(this).css('background-position-y', '-27px');
  27.                         $(this).addClass('on');
  28.                         $(this).children('input[type="checkbox"]').attr('checked', 'checked');
  29.                     }
  30.                 });
  31.             });
  32.         </script>
  33.     </head>
  34.     <body>
  35.         <ul class="check-box">
  36.             <li id="id_use-maps" class="icheckbox on-off on"><input type="checkbox" class="icheckbox" name="use_maps" checked="checked"/></li>
  37.         </ul>
  38.     </body>
  39. </html>
here is an all in one html file.

Can anyone spot what I might be doing wrong here?

Niall