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 results with different browsers, using:
var el = document.getElementById('test');
window.getComputedStyle(el, null).getPropertyValue("margin-xxx");
Chrome 11, FF 4, Safari 3.2.3 and Opera 9.64 returned:
margin-top 20px
margin-bottom 20px
margin-right 0px
margin-left 0px
I still don't understand why you think the "test" div should have a value
other than "0px" for margin-left and margin-right. Is it because 'test' div
is horizontally centered?
--
Joao Rodrigues
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]