Skip to content

Commit cff3957

Browse files
committed
CSS: Add test for jquerygh-2867
1 parent 1822945 commit cff3957

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/unit/css.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,16 @@ QUnit.test( "can't get css for disconnected in IE<9, see #10254 and #8388", func
814814
assert.equal( div.css( "top" ), "10px", "can't get top in IE<9, see #8388" );
815815
} );
816816

817+
QUnit.test( "Ensure styles are retrieving from parsed html on document fragments", function( assert ) {
818+
assert.expect( 1 );
819+
820+
var $span = jQuery(
821+
jQuery.parseHTML( "<span style=\"font-family: Cuprum,sans-serif; font-size: 14px; color: #999999;\">some text</span>" )
822+
);
823+
824+
assert.equal( $span.css( "font-size" ), "14px", "Font-size retrievable on parsed HTML node" );
825+
} );
826+
817827
QUnit.test( "can't get background-position in IE<9, see #10796", function( assert ) {
818828
var div = jQuery( "<div/>" ).appendTo( "#qunit-fixture" ),
819829
units = [

0 commit comments

Comments
 (0)