Bug Tracker

Ticket #2671: lineheight.jquery.html

File lineheight.jquery.html, 728 bytes (added by kizu, 5 years ago)

Test Case for the bug

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html lang='ru' xml:lang='ru' xmlns='http://www.w3.org/1999/xhtml'>
3<head>
4        <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
5        <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
6        <script type="text/javascript">
7
8$(function() {
9        alert( $('.test').css('line-height') );
10});
11        </script>
12        <title>Buggy detection of line-height in IE</title>
13</head>
14<body>
15        <p class="test" style="line-height:1;">alert($('.test').css('line-height'));</p>
16        <p>In normal browsers we get something like "16px", however in IE the return is "1"</p>
17</body>
18</html>