Skip to content

Commit e7e80fe

Browse files
committed
CSS: Add test for jquerygh-2867
1 parent ab5992e commit e7e80fe

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
@@ -876,6 +876,16 @@ QUnit.test( "can't get css for disconnected in IE<9, see #10254 and #8388", func
876876
assert.equal( div.css( "top" ), "10px", "can't get top in IE<9, see #8388" );
877877
} );
878878

879+
QUnit.test( "Ensure styles are retrieving from parsed html on document fragments", function( assert ) {
880+
assert.expect( 1 );
881+
882+
var $span = jQuery(
883+
jQuery.parseHTML( "<span style=\"font-family: Cuprum,sans-serif; font-size: 14px; color: #999999;\">some text</span>" )
884+
);
885+
886+
assert.equal( $span.css( "font-size" ), "14px", "Font-size retrievable on parsed HTML node" );
887+
} );
888+
879889
QUnit.test( "can't get background-position in IE<9, see #10796", function( assert ) {
880890
var div = jQuery( "<div/>" ).appendTo( "#qunit-fixture" ),
881891
units = [

0 commit comments

Comments
 (0)