Setting CSS props and timers from JavaScript

Koos Vriezen koos.vriezen at xs4all.nl
Sun Nov 3 18:33:33 GMT 2002


On Sun, 3 Nov 2002, David Faure wrote:

> On Sunday 03 November 2002 17:43, Koos Vriezen wrote:
> > No, the speed penalty of 'styleDecl.getPropertyValue(prop)' is much
> > smaller than that of a recalc imo.
>
> Ah yes, I forgot to take into account the recalc. OK, now I see your point.
>
> > It's only one extra lookup (which could
> > be eliminated if we really want to, removeProperty also must find it).
>
> Yes - but that means using Impl classes once more instead of the DOM.

Well only if we really want to, but its a hashtable lookup. Speed penalty
is small then. Leave it then as in the posted patch. Should I commit this
one too?

> > > > > [ The real problem IMHO is that there is no DOM event for "scrollbars moved",
> > > > > which such sites could use to move the static thingie, instead of polling :} ]
> > > >
> > > > IE has onScroll events, which are imo very suitable for this.
> > >
> > > Yup, sounds great. So
> > > 1) we need to implement it
> > > 2) we need to suggest it to the W3C DOM people
> > > 3) we can finally ask the "makeStatic" people to rewrite their stuff :)
> >
> > That was not my point of course, could be said for all IE extension. I
> > only noted that it existed.
>
> Huh - I think you saw irony where I was in fact serious. I wasn't trying to imply
> negative things here, all of the above is doable.

Oops, yes I did. Well if you thinks its feasible... Hardest part is 3) :)

Koos





More information about the kfm-devel mailing list