ladybird/Userland/Libraries/LibWeb/HTML/ImageData.idl
Kenneth Myhra 8a1e88677f LibWeb: Add FIXME comments to ImageData.idl
Add FIXME comments for ImageData's missing constructor and attribute
colorSpace.
2024-03-24 11:09:09 +01:00

17 lines
688 B
Text

// https://html.spec.whatwg.org/multipage/canvas.html#imagedata
enum PredefinedColorSpace { "srgb", "display-p3" };
dictionary ImageDataSettings {
PredefinedColorSpace colorSpace;
};
[Exposed=(Window,Worker), Serializable]
interface ImageData {
constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
// FIXME: constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
readonly attribute unsigned long width;
readonly attribute unsigned long height;
readonly attribute Uint8ClampedArray data;
// FIXME: readonly attribute PredefinedColorSpace colorSpace;
};