I meant to say el.setStyle('border',el2.getStyle('border')) doesn't
always work if el2.getStyle('border') returns more than 3 space
delimited tokens. But I guess it's too much to ask mootools to fix
this css problem with javascript.. or is it?
On Sep 26, 11:09 pm, jon <[EMAIL PROTECTED]> wrote:
> I see, one issue is that if I call
> $('test').setStyle('border','0px none #000000 0px none #000000 0px
> none #000000 0px none #000000'); it won't work,
> I have to do setStyle('border','0px none #000000'), it seems
> inconsistent that el.setStyle('border',el.getStyle('border')) doesn't
> work in these cases.
>
> On Sep 26, 8:15 pm, cheeaun <[EMAIL PROTECTED]> wrote:
>
> > On Sep 27, 9:46 am, jon <[EMAIL PROTECTED]> wrote:
>
> > > sometimes I call el.getStyle('border') and get '0px none #000000 0px
> > > none #000000 0px none #000000 0px none #000000', it's repeated. Has
> > > anyone gotten this problem? is this a bug?
>
> > No, it's not a bug. That is actually the correct way of returning the
> > values, just in case someone applied something like this:
>
> > element {
> > border-top: 2px solid red;
> > border-right: 1px dashed blue;
> > border-bottom: 3px groove green;
> > border-left: 4px double yellow;
>
> > }
>
> > .. so, it should return all the 4 types of border widths, styles and
> > colors.
>
> > Hope this helps.