.css('fontSize') returns different value in Internet Explorer
|Reported by:||kswedberg||Owned by:|
|Keywords:||css, style IE||Cc:|
Description (last modified by john)
The .css() method returns a different font-size value for Firefox and Internet Explorer if the stylesheet has set the size with any unit other than pixel.
As Dave Methvin explains*, this has something to do with Firefox and other browsers using getComputedStyle (which computes the size in px) while IE uses currentStyle (which gets the size from the style rule).
The difference can be problematic in some cases.
Change History (16)
comment:3 Changed 10 years ago by john
- Milestone set to 1.1.3
- need set to Test Case
- Version set to 1.1.2
comment:4 Changed 10 years ago by john
- Description modified (diff)
- Milestone changed from 1.1.3 to 1.2
- Resolution set to fixed
- Status changed from new to closed
- Version changed from 1.1.2 to 1.1.4
comment:5 Changed 10 years ago by gudoy
- Resolution fixed deleted
- Status changed from closed to reopened