Side navigation
#14731 closed bug (fixed)
Opened January 26, 2014 12:33AM UTC
Closed January 26, 2014 01:57AM UTC
Checking .css('marginRight') after width() can give incorrect results
| Reported by: | m_gol | Owned by: | m_gol |
|---|---|---|---|
| Priority: | low | Milestone: | 1.11.1 |
| Component: | css | Version: | 1.11.0 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
As @timmywil discovered here (with help from @jdalton):
we're caching the reliableMarginRight support test result in a variable that is also pre-set when computing the boxSizingReliable support test. This leads to an incorrect test result and can lead to erroneous output.
The reliableMarginRight caching can just be removed since the function is executed only once, in the addGetHookIf function. This will solve the bug.
2.x doesn't have this problem.