microsoft / TypeScript-DOM-lib-generator

Tool for generating dom related TypeScript and JavaScript library files
Apache License 2.0
600 stars 417 forks source link

Types for CSS painting API - `registerPaint` #1192

Open beamery-tomht opened 2 years ago

beamery-tomht commented 2 years ago

Suggestion

πŸ” Search Terms

registerPaint, CSS paint API, types

βœ… Viability Checklist

My suggestion meets these guidelines:

⭐ Suggestion

I'd like to add a type definition for the CSS paint API to the lib.dom.ts.d

πŸ“ƒ Motivating Example

An existing example taken from the wild of a custom border radius smoothing implementation using the CSS paint API: https://css-houdini.rocks/smooth-corners/

πŸ’» Use Cases

MartinJohns commented 2 years ago

microsoft/TypeScript-DOM-lib-generator is the right repository for DOM related type declarations. I haven't found an issue related CSS painting.

orta commented 2 years ago

Just noting for others that this looks to be a chromium only API, so you'd need to either submit the extension to DefinitelyTyped or persuade other browsers to support the API.