Skip to content

[css-paint-api] should normatively require switching between at least 2 worklet global scopes in most cases #327

Closed
@dbaron

Description

@dbaron

As recorded at the end of our Lisbon minutes, part I, css-paint-api should:

  RESOLVED: Paint/Layout specs will have normative section that
            implementations must have at least 2 globals with an
            opt-out for memory constraints.

We wanted this (if my memory is correct) to reduce the chance that content will depend on state in the global scope in ways that would break implementations that want to do things like run these worklets at the same time on different threads, which is something that probably won't happen in initial implementations but that we might want to do in the future.

The current wording in the spec appears to be:

Let workletGlobalScope be a PaintWorkletGlobalScope from the list of worklet’s WorkletGlobalScopes from the paint Worklet.

The user agent may also create a WorkletGlobalScope given the paint Worklet and use that.

Note: The user agent may use any policy for which PaintWorkletGlobalScope to select or create. It may use a single PaintWorkletGlobalScope or multiple and randomly assign between them.

which does not express this normative requirement.

(I got here from w3ctag/design-reviews#140 .)

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