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
parent 1ca84214
...@@ -708,14 +708,7 @@ test("widows & orphans #8936", function () { ...@@ -708,14 +708,7 @@ test("widows & orphans #8936", function () {
var $p = jQuery("<p>").appendTo("#qunit-fixture"); var $p = jQuery("<p>").appendTo("#qunit-fixture");
expect( 4 ); expect( 2 );
$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" );
$p.css({ $p.css({
"widows": 3, "widows": 3,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment