Hi Using getComputedStyle value to get padding properties does not work. Regards Srinivas
Reporter, please make an example. And consider to read the bug writers guidelines on Bugzilla. You don't want to have a short reply too do you? Please make a simple, but functional, example. And attache it to this bug. This would be a great help for all testers. Thank you, HJ.
Confirmed Platform: PC OS: Win 98 Mozilla Build: 2001010204 Marking NEW.
Over to harishd who's the new proud owner of getComputedStyle().
Please, get that crash out of the source!
Created attachment 26681 [details] Corrected testcase (or at least more correct), the previous one was incorrect.
The initial testcase in this bug has two problems, it calls getComputedStyle(e, null) which is incorrect, the second parameter to the getComputedStyle() should be a string, so passing in an empty string is what should have been done in the testcase, passing in null will cause an automatic object to string coversion in JS which results in the second argument that's passed in being the string "null". The other problem was that the name of the css property was incorrect, the testcase used "paddingLeft" when it should've used "padding-left".
This is fixed. Try jst's test case to verify this bug.
Yabadabadoo, confirming FIXED on NT with build 2001030505.