From cff39574576766b6057c5363e4f38976b1680b92 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 27 Jan 2016 11:36:34 -0500 Subject: [PATCH] CSS: Add test for gh-2867 --- test/unit/css.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/css.js b/test/unit/css.js index c2213b248..8ccc6b5da 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -814,6 +814,16 @@ QUnit.test( "can't get css for disconnected in IE<9, see #10254 and #8388", func assert.equal( div.css( "top" ), "10px", "can't get top in IE<9, see #8388" ); } ); +QUnit.test( "Ensure styles are retrieving from parsed html on document fragments", function( assert ) { + assert.expect( 1 ); + + var $span = jQuery( + jQuery.parseHTML( "some text" ) + ); + + assert.equal( $span.css( "font-size" ), "14px", "Font-size retrievable on parsed HTML node" ); +} ); + QUnit.test( "can't get background-position in IE<9, see #10796", function( assert ) { var div = jQuery( "
" ).appendTo( "#qunit-fixture" ), units = [