diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-04-18 02:07:17 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-04-18 16:21:21 +0200 |
commit | def4841cfaf68e2ec156c554f8efa4aa64203f36 (patch) | |
tree | 0cf99082394496d236884b9133502ff40b0f3d3b | |
parent | 1ca84214cc89d9e5f8af12b18b34426fc91b1b08 (diff) | |
download | jquery-def4841cfaf68e2ec156c554f8efa4aa64203f36.tar.gz jquery-def4841cfaf68e2ec156c554f8efa4aa64203f36.zip |
Css: Use only positive integers as values for widows/orphans
According to http://www.w3.org/TR/CSS2/page.html#propdef-orphans, widows
and orphans can take only positive integer values. Together with a Chrome 34
regression this caused the test to fail.
Fixes #15016
Closes gh-1563
-rw-r--r-- | test/unit/css.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 6a8d7ac46..bfbe8ae5e 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -708,14 +708,7 @@ test("widows & orphans #8936", function () { var $p = jQuery("<p>").appendTo("#qunit-fixture"); - expect( 4 ); - $p.css({ - "widows": 0, - "orphans": 0 - }); - - equal( $p.css( "widows" ) || jQuery.style( $p[0], "widows" ), 0, "widows correctly start with value 0" ); - equal( $p.css( "orphans" ) || jQuery.style( $p[0], "orphans" ), 0, "orphans correctly start with value 0" ); + expect( 2 ); $p.css({ "widows": 3, |