Closed skyclouds2001 closed 1 week ago
the filter property is defined via CanvasFilters mixin, but PaintRenderingContext2D didn't include this mixin, meaning the PaintRenderingContext2D.filter property is non-standard
filter
CanvasFilters
PaintRenderingContext2D
PaintRenderingContext2D.filter
see https://drafts.css-houdini.org/css-paint-api/#paintrenderingcontext2d and https://html.spec.whatwg.org/multipage/canvas.html#canvasfilters
note that chromium has shipped this feature, see https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl#L33
the PaintRenderingContext2D.filter property's definition is still under discussion, see https://github.com/w3c/css-houdini-drafts/issues/1056, https://github.com/w3c/css-houdini-drafts/issues/1022, https://github.com/w3c/css-houdini-drafts/issues/398
Fixes https://github.com/mdn/browser-compat-data/issues/25098 Document update at https://github.com/mdn/content/pull/36830
Summary
the
filter
property is defined viaCanvasFilters
mixin, butPaintRenderingContext2D
didn't include this mixin, meaning thePaintRenderingContext2D.filter
property is non-standardsee https://drafts.css-houdini.org/css-paint-api/#paintrenderingcontext2d and https://html.spec.whatwg.org/multipage/canvas.html#canvasfilters
note that chromium has shipped this feature, see https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl#L33
the
PaintRenderingContext2D.filter
property's definition is still under discussion, see https://github.com/w3c/css-houdini-drafts/issues/1056, https://github.com/w3c/css-houdini-drafts/issues/1022, https://github.com/w3c/css-houdini-drafts/issues/398Test results and supporting details
Related issues
Fixes https://github.com/mdn/browser-compat-data/issues/25098 Document update at https://github.com/mdn/content/pull/36830