-
- Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
Using an SVG <mask> element with a mask-type attribute causes svelte-check to report the following error, because the mask-type attribute is not present in svelte/elements.d.ts:
Error: Object literal may only specify known properties, and '"mask-type"' does not exist in type 'HTMLProps<"mask", SVGAttributes<any>>'. Reproduction
https://svelte.dev/playground/e598d5f225474474bbbf5e6591c24e65?version=5.41.1
Create a Typescript project with sv create using this as a template and run npm run check.
Logs
System Info
System: OS: macOS 26.0.1 CPU: (8) arm64 Apple M3 Memory: 356.61 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.19.0 - /Users/user/.nvm/versions/node/v22.19.0/bin/node npm: 10.9.3 - /Users/user/.nvm/versions/node/v22.19.0/bin/npm pnpm: 10.4.0 - /Users/user/Library/pnpm/pnpm bun: 1.3.0 - /Users/user/.bun/bin/bun Browsers: Chrome: 141.0.7390.108 Firefox: 144.0 Safari: 26.0.1 npmPackages: svelte: workspace:^ => 5.41.1Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels