Skip to content

[worklets] Should paintWorklet be a static attribute? #410

@nhiroki

Description

@nhiroki

IIUC, CSS is not an instance but an interface (and will be changed to namespace?), so paintWorklet could be a static attribute[2] like this:

partial interface CSS {
    [SameObject] static readonly attribute Worklet paintWorklet;
};

[1] https://heycam.github.io/webidl/#idl-namespaces
[2] https://heycam.github.io/webidl/#idl-static-attributes-and-operations

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