cssNormalTransform can produce wrong values
|Reported by:||anonymous||Owned by:||mikesherov|
In jQuery 1.8 there is an cssNormalTransform property that holds numerical default values for CSS properties whose “computed style” evaluates to “normal”. These fixed values may be just wrong in some cases. E.g. for “line-height” the CSS spec clearly states that the the computed value in such a case is “normal” and the user agent can choose a “reasonable” value. Values between 1.0 to 1.2 are recommended.
In most cases the value may be 1.0. But for some elements (e.g. <textarea>) it is different in most browsers.
The same may be true for “line-height”.
jQuery should just return “normal” in these cases (as it did in previous versions).
Change History (5)
comment:1 Changed 3 years ago by mikesherov
- Component changed from unfiled to css
- Owner set to anonymous
- Status changed from new to pending
comment:3 Changed 3 years ago by mikesherov
- Milestone changed from None to 1.8.1
- Owner changed from anonymous to mikesherov
- Priority changed from undecided to high
- Status changed from new to assigned