Skip to content

How are paint worklets picked? #471

@dglazkov

Description

@dglazkov

From https://groups.google.com/a/chromium.org/d/msg/blink-dev/Jex3idOld48/XWkgUzlxBQAJ

@bzbarsky:

What the spec defines is that a UA must have at least two paint worklets
and assign work to them somehow. The spec does not require randomness
of ordering of work assignment, randomness in which worklet is chosen,
or anything else.

This unfortunately makes it fairly easy to create worklets that depend
on specific assignment algorithms, and I expect pages to end up doing
just that if browsers do anything deterministic here. At which point
we'll end up having to specify those deterministic algorithms, and
whatever their limitations are (e.g. only two paint worklets, period).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions