Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Issues with ImageData extension #62

@weinig

Description

@weinig

The current proposal has the following extension to the ImageData interface:

partial interface ImageData {
  constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings);
  constructor(ImageDataArray data, unsigned long sw, unsigned long sh, optional ImageDataSettings);
  readonly ImageDataSettings getImageDataSettings();
  readonly attribute ImageDataArray data;
};

There are few issues here.

  1. Partial interfaces cannot define constructors (though I don't exactly remember why this is a requirement, the grammar does not allow it). I think you will want to define this by completely re-declaring the ImageData interface.
  2. The readonly prefix on the getImageDataSettings() operation is invalid. It should just be removed.
  3. The type ImageDataArray appears in two places and is undefined. This was probably from an earlier draft where non-8-bit backing stores were supported but should now be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions