@@ -916,26 +916,35 @@ if ( jQuery.fn.offset ) {
916
916
} ) ;
917
917
}
918
918
919
- QUnit . test ( "Do not append px (#9548, #12990)" , function ( assert ) {
920
- assert . expect ( 2 ) ;
919
+ QUnit . test ( "Do not append px (#9548, #12990, #2792 )" , function ( assert ) {
920
+ assert . expect ( 3 ) ;
921
921
922
922
var $div = jQuery ( "<div>" ) . appendTo ( "#qunit-fixture" ) ;
923
923
924
924
$div . css ( "fill-opacity" , 1 ) ;
925
925
926
926
// Support: Android 2.3 (no support for fill-opacity)
927
- if ( $div . css ( "fill-opacity" ) ) {
927
+ if ( $div . css ( "fill-opacity" ) !== undefined ) {
928
928
assert . equal ( $div . css ( "fill-opacity" ) , 1 , "Do not append px to 'fill-opacity'" ) ;
929
929
} else {
930
930
assert . ok ( true , "No support for fill-opacity CSS property" ) ;
931
931
}
932
932
933
933
$div . css ( "column-count" , 1 ) ;
934
- if ( $div . css ( "column-count" ) ) {
934
+ if ( $div . css ( "column-count" ) !== undefined ) {
935
935
assert . equal ( $div . css ( "column-count" ) , 1 , "Do not append px to 'column-count'" ) ;
936
936
} else {
937
937
assert . ok ( true , "No support for column-count CSS property" ) ;
938
938
}
939
+
940
+ $div . css ( "animation-iteration-count" , 2 ) ;
941
+ if ( $div . css ( "animation-iteration-count" ) !== undefined ) {
942
+ // if $div.css( "animation-iteration-count" ) return "1",
943
+ // it actually return the default value of animation-iteration-count
944
+ assert . equal ( $div . css ( "animation-iteration-count" ) , 2 , "Do not append px to 'animation-iteration-count'" ) ;
945
+ } else {
946
+ assert . ok ( true , "No support for animation-iteration-count CSS property" ) ;
947
+ }
939
948
} ) ;
940
949
941
950
QUnit . test ( "css('width') and css('height') should respect box-sizing, see #11004" , function ( assert ) {
0 commit comments