RE: RE: [JSMentors] Re: getComputedStyle and marginLeft when auto

2011-05-17 Thread Joel Dart
Hey Joao, I didn't test on Safari 3.2.3 (and my version of opera is newer as well), but in general I'd agree with your results. That said, Safari 5.0.4 (I believe correctly) returns 98px for margin-left on my test case http://jsfiddle.net/RVpPx/4/. This fiddle only tests margin-left, but same

Re: RE: [JSMentors] Re: getComputedStyle and marginLeft when auto

2011-05-17 Thread J.R.
On Monday, 16 May 2011 13:12:27 UTC-3, Joel Dart wrote: > > Hey Sheldon, > > It does return 20px, also, I assumed it was a webkit issue since it failed > on Chrome, but Safari actually does produce the correct value. I’ve > reported the bug to Firefox, Chrome, and Opera. > Here are my test re

RE: RE: [JSMentors] Re: getComputedStyle and marginLeft when auto

2011-05-15 Thread Joel Dart
http://www.w3.org/TR/CSS21/box.html#propdef-margin-left> or 'margin-right' becomes a used value of '0': Yes, for inline-replaced elements that is the case, but my exam

Re: RE: [JSMentors] Re: getComputedStyle and marginLeft when auto

2011-05-14 Thread J.R.
On Friday, 13 May 2011 01:03:53 UTC-3, Joel Dart wrote: > > The problem is not with the rendering in those browsers. The problem is > that the return value of window.getComputedStyle(test, > null).getPropertyValue("margin-left") is “0px” which is clearly not the used > value for margin-left. >