[css-houdini-drafts] [worklets] Speculative evalution

asajeffrey has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [worklets] Speculative evalution ==
In the "code idempotency" section of the draft spec (https://drafts.css-houdini.org/worklets/#code-idempotency) there's an encouragement to write idempotent code, because UAs might swap globals.

UAs may also wish to speculatively evaluate worklets: for example in the paint worklet, the calculated values for CSS may be available before the concrete object size, so a UA might speculatively evaluate the worklet using an old value for the size, and discard the result if the speculation turns out to be wrong.

It might be nice if the spec explicitly allowed this?

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/406 using your GitHub account

Received on Friday, 12 May 2017 16:52:38 UTC