Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[worklets] Add language for non-determinism in a note. #472

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions css-paint-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,14 @@ following steps:
in the <a>worklet's WorkletGlobalScopes</a> <a>list</a>, unless the user agent is under
memory constraints.

<div class='note'>
User-agents have to attempt to introduce some non-determinism in the selection process
above. For example they could:
- Each frame select a random global scope from the list.
- After invocation(s) of <a>draw a paint image</a> randomly choose to switch to a
different global scope.
</div>

Note: This is to ensure that authors do not rely on being able to store state on the global
object or non-regeneratable state on the class.

Expand Down