css-houdini-drafts
css-houdini-drafts copied to clipboard
[css-paint-api] Should PaintRenderingContext2D have a filter attribute?
Per https://drafts.css-houdini.org/css-paint-api/#2d-rendering-context there shouldn't be a filter
attributes on PaintRenderingContext2D
, because there's no PaintRenderingContext2D includes CanvasFilters
statements or similar that would make it so.
But Chromium does have a filters
attributes here:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl;l=39;drc=0c2640a413f8a95cefd92f01be76cc531eea1910
@mysterydate is there a spec PR for adding this?
The reason I noticed this is because MDN's browser-compat-data has a "filter" entry for this: https://github.com/mdn/browser-compat-data/blob/f3b0ec5cc89231ee0b528bdfbfeef92f5019e4cd/api/PaintRenderingContext2D.json#L530
But there's no spec IDL for it.
There's no spec PR for adding this from the canvas team. @xidachen, do you know if paint canvas is meant to support this?