[csswg-drafts] [css-images-4] Should `CSS.elementSources` be considered at risk? (#9372)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images-4] Should `CSS.elementSources` be considered at risk? ==
Can you please clarify if you plan to drop `CSS.elementSources`? or even `image()`?

[`CSS.elementSources`](https://drafts.csswg.org/css-images-4/#elementsources) was hidden before #3572, which defined it with `any` as its type.

  > ```
  > partial namespace CSS {
  >  [SameObject] readonly attribute any elementSources;
  > };
  > ```

In #428, fixed by the above PR:

  > that spec version is way out of date and needs to get some stuff dropped.

If it should not be dropped, is there a reason to not define it as a [`maplike`](https://webidl.spec.whatwg.org/#dfn-maplike)?

  > **EXAMPLE 13**
  >
  > ```html
  > <script>
  >   var bg = document.createElement('canvas');
  >   CSS.elementSources.set('fancy', bg);
  > </script>
  > ```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9372 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 18 September 2023 09:42:31 UTC