Re: [selector-profiles] confusion

On 7/11/13 10:25 PM, François REMY wrote:
>> How do you determine that it has to be reevaluated?
>
> That's up to the browser to optimise that.

Well, but ... that's the part that's typically "slow"!

> The basic case (and also the worst) would be that it has to be reevalutated every time you make a style resolution

I'm not sure what you mean by "make a style resolution"...

> In my querySelectorLive implementation; I'm actually looking at the selector to know which causes may force to reevaluate the selector.

Right, but this can be the slow part.

> I've no idea if browsers actually do the same or not. 		 	   		

They sure do.  https://wiki.mozilla.org/Servo/StyleUpdateOnDOMChange has 
some maybe-correct stuff worth reading on the subject.

-Boris

Received on Friday, 12 July 2013 02:35:02 UTC