I'm using OSX Chrome and it does it correctly as does Safari .getStyle() either uses the inline style via the .style property of the DOM object
if that is not set then it tries to use document.defaultView.getComputedStyle(element, null) which is returning nothing for the "border" property have you tried to use http://api.prototypejs.org/dom/Element/prototype/getLayout/ ? Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Fri, Mar 1, 2013 at 4:42 PM, Walter Lee Davis <wa...@wdstudio.com> wrote: > Try this example in Safari, Chrome, and Firefox, latest versions. Please > let me know what you see. > > http://scripty.walterdavisstudio.com/copy-style-fail.html > > Safari gets it right, Firefox and Chrome do not, and I'm baffled. > > Digging into the issue in Firebug, it appears as though > defaultView.getComputedStyle is only populating the fully-decomposed border > properties: border-left-color, border-left-width, etc. None of the > intermediate shortcut attributes have any value assigned to them at all. > > Any suggestions? > > Thanks, > > Walter > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prototype-scriptaculous+unsubscr...@googlegroups.com. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > Visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.