Side navigation
Ticket #2671: lineheight.jquery.html
File lineheight.jquery.html, 0.7 KB (added by kizu, September 11, 2009 12:17PM UTC)
Test Case for the bug
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='ru' xml:lang='ru' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script type="text/javascript">
$(function() {
alert( $('.test').css('line-height') );
});
</script>
<title>Buggy detection of line-height in IE</title>
</head>
<body>
<p class="test" style="line-height:1;">alert($('.test').css('line-height'));</p>
<p>In normal browsers we get something like "16px", however in IE the return is "1"</p>
</body>
</html>
Download in other formats:
Original Format
File lineheight.jquery.html, 0.7 KB (added by kizu, September 11, 2009 12:17PM UTC)
Test Case for the bug
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='ru' xml:lang='ru' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script type="text/javascript">
$(function() {
alert( $('.test').css('line-height') );
});
</script>
<title>Buggy detection of line-height in IE</title>
</head>
<body>
<p class="test" style="line-height:1;">alert($('.test').css('line-height'));</p>
<p>In normal browsers we get something like "16px", however in IE the return is "1"</p>
</body>
</html>