Commit Graph
3 Commits
Author SHA1 Message Date
ldm0 ce6f8320f4 feat(canvas): preserve native HDR pixel storage
Retain float16/unorm8, sRGB/Display-P3 and alpha representation through
Canvas, OffscreenCanvas, ImageData and ImageBitmap operations. Composite
in premultiplied coordinates, convert at native format boundaries and
preserve untouched pixel bytes across partial writes and bitmap copies.

Keep parsed drawing colors independent from CSS serialization and use
the shared native receiver bindings for color attributes. Correct the
old trailing-zero serialization expectation against Chromium output.

Validation: fmt, full workspace clippy and nextest (22234 passed,
16 skipped; 32 jobs/threads, zero retries). Original WPT: 914/1116 (+12), all 902 prior passes retained. Sources,
harnesses and assertions are unchanged; browser evidence is retained.
2026-11-22 02:02:01 +08:00
ldm0 d52ad84972 fix(canvas): honor ImageData color spaces and pixel formats 2026-11-22 02:02:01 +08:00
ldm0 190f563889 fix(canvas): preserve native ImageData construction and clone graphs 2026-11-22 02:02:01 +08:00