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:24:18 +0200 |
commit | e848b46cfc1813b8fd126e530de462cc63b47e35 (patch) | |
tree | c37f02b36b94c47c47e2b640cd597f33ba507765 | |
parent | 90c50ef961ac3862e6ef693f588f513bf5e759ee (diff) | |
download | jquery-e848b46cfc1813b8fd126e530de462cc63b47e35.tar.gz jquery-e848b46cfc1813b8fd126e530de462cc63b47e35.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.
(cherry-picked from def4841cfaf68e2ec156c554f8efa4aa64203f36)
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 c949ae062..28bc684ef 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -754,14 +754,7 @@ test("widows & orphans #8936", function () { var $p = jQuery("<p>").appendTo("#qunit-fixture"); if ( "widows" in $p[0].style ) { - 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, |