aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2016-01-27 11:36:34 -0500
committerTimmy Willison <timmywillisn@gmail.com>2016-01-27 11:39:32 -0500
commite7e80fe476478ebcb6f1e1e25f8edf96f5a14c9a (patch)
treea14077f0e9fad6c4d525d2f8fe42b0344104bf40
parentab5992e56e5ea645c703343a4bba5f71e27aaf43 (diff)
downloadjquery-e7e80fe476478ebcb6f1e1e25f8edf96f5a14c9a.tar.gz
jquery-e7e80fe476478ebcb6f1e1e25f8edf96f5a14c9a.zip
CSS: Add test for gh-2867
-rw-r--r--test/unit/css.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 95ba69669..58e9e1364 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -876,6 +876,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 = [