Side navigation
Ticket #5624: jqueryFontSizeBug.html
File jqueryFontSizeBug.html, 0.6 KB (added by MrHumanish, December 09, 2009 05:14PM UTC)
Html file demonstrating the bug
<html>
<head>
<title>jQuery css font-size bug in Mozilla Firefox</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var el = $('#testPara');
$('#results').append('<p>$(el).css("font-size"): <b>'+$(el).css('font-size')+'</b> - el.get(0).style.fontSize: <b>'+el.get(0).style.fontSize+'</b> - $(el).height(): <b>'+$(el).height()+'</b></p>');
});
</script>
</head>
<body>
<p id='testPara' style='font-size:5px;line-height:1;'>some really small text!</p>
<div id='results'></div>
</body></html>
Download in other formats:
Original Format
File jqueryFontSizeBug.html, 0.6 KB (added by MrHumanish, December 09, 2009 05:14PM UTC)
Html file demonstrating the bug
<html>
<head>
<title>jQuery css font-size bug in Mozilla Firefox</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var el = $('#testPara');
$('#results').append('<p>$(el).css("font-size"): <b>'+$(el).css('font-size')+'</b> - el.get(0).style.fontSize: <b>'+el.get(0).style.fontSize+'</b> - $(el).height(): <b>'+$(el).height()+'</b></p>');
});
</script>
</head>
<body>
<p id='testPara' style='font-size:5px;line-height:1;'>some really small text!</p>
<div id='results'></div>
</body></html>