mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Merge branch '7608' of https://github.com/rwldrn/jquery into rwldrn-7608
This commit is contained in:
@@ -320,3 +320,25 @@ test(":visible selector works properly on children with a hidden parent (bug #45
|
||||
jQuery('#table').css('display', 'none').html('<tr><td>cell</td><td>cell</td></tr>');
|
||||
equals(jQuery('#table td:visible').length, 0, "hidden cell children not perceived as visible");
|
||||
});
|
||||
|
||||
test("internal ref to elem.runtimeStyle (bug #7608)", function () {
|
||||
expect(1);
|
||||
|
||||
var result = true,
|
||||
val = 10;
|
||||
|
||||
jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
|
||||
'<div id="test" style="width:0%; background:#000;"> </div></div>').appendTo("#main");
|
||||
|
||||
try {
|
||||
// the bug is located within src/css.js
|
||||
jQuery("#bug7608 #test").animate( { width: val }, 1000);
|
||||
|
||||
} catch (e) {
|
||||
result = false;
|
||||
}
|
||||
|
||||
ok( result, "elem.runtimeStyle does not throw exception" );
|
||||
|
||||
jQuery("#bug7608").remove();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user