From 9f86dc922ed832337d246d7baf8fd397dc837346 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sun, 19 Aug 2012 16:03:08 -0400 Subject: [PATCH] Fix #12324, line-height "normal" isn't always "1". Close gh-898. --- src/css.js | 3 +-- test/unit/css.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/css.js b/src/css.js index d9e7f00d6..3d7565020 100644 --- a/src/css.js +++ b/src/css.js @@ -11,8 +11,7 @@ var curCSS, iframe, iframeDoc, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: 0, - fontWeight: 400, - lineHeight: 1 + fontWeight: 400 }, cssExpand = [ "Top", "Right", "Bottom", "Left" ], diff --git a/test/unit/css.js b/test/unit/css.js index dca5a08e0..30ce95fc9 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -776,11 +776,10 @@ test("css('width') and css('height') should respect box-sizing, see #11004", fun }); test("certain css values of 'normal' should be convertable to a number, see #8627", function() { - var el = jQuery("
test
").appendTo("#qunit-fixture"); + var el = jQuery("
test
").appendTo("#qunit-fixture"); ok( jQuery.isNumeric( parseFloat( el.css("letterSpacing") ) ), "css('letterSpacing') not convertable to number, see #8627" ); ok( jQuery.isNumeric( parseFloat( el.css("fontWeight") ) ), "css('fontWeight') not convertable to number, see #8627" ); - ok( jQuery.isNumeric( parseFloat( el.css("lineHeight") ) ), "css('lineHeight') not convertable to number, see #8627" ); }); test( "cssHooks - expand", function() { -- 2.39.5