diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2016-01-27 11:36:34 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2016-01-27 11:37:35 -0500 |
commit | cff39574576766b6057c5363e4f38976b1680b92 (patch) | |
tree | 9642ee9023b71dffe2582fc626807c9a38da5993 /test | |
parent | 182294539e1a439103bd027452ed9af11c0b9070 (diff) | |
download | jquery-cff39574576766b6057c5363e4f38976b1680b92.tar.gz jquery-cff39574576766b6057c5363e4f38976b1680b92.zip |
CSS: Add test for gh-2867
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 10 |
1 files changed, 10 insertions, 0 deletions
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( "<span style=\"font-family: Cuprum,sans-serif; font-size: 14px; color: #999999;\">some text</span>" ) + ); + + 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( "<div/>" ).appendTo( "#qunit-fixture" ), units = [ |