Commit fb65ba41 authored by timmywil's avatar timmywil

Merged pull request #345 from rwldrn/8971.

No need to test for widows & orphans values in IE6-8. Fixes #8971
parents 51650338 86d5d3e8
...@@ -396,10 +396,11 @@ test("jQuery.cssProps behavior, (bug #8402)", function() { ...@@ -396,10 +396,11 @@ test("jQuery.cssProps behavior, (bug #8402)", function() {
}); });
test("widows & orphans #8936", function () { test("widows & orphans #8936", function () {
expect(4);
var $p = jQuery("<p>").appendTo("#main").end(); var $p = jQuery("<p>").appendTo("#main").end();
if ( "widows" in $p[0].style ) {
expect(4);
$p.css({ $p.css({
widows: 0, widows: 0,
orphans: 0 orphans: 0
...@@ -415,6 +416,12 @@ test("widows & orphans #8936", function () { ...@@ -415,6 +416,12 @@ test("widows & orphans #8936", function () {
equal( $p.css("widows"), 3, "widows correctly set to 3"); equal( $p.css("widows"), 3, "widows correctly set to 3");
equal( $p.css("orphans"), 3, "orphans correctly set to 3"); equal( $p.css("orphans"), 3, "orphans correctly set to 3");
} else {
expect(1);
ok( true, "jQuery does not attempt to test for style props that definitely don't exist in older versions of IE");
}
$p.remove(); $p.remove();
}); });
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