Skip to content

Commit

Permalink
fix(runtime): properly type color-interpolation-filter (#4530)
Browse files Browse the repository at this point in the history
this commit updates the typings of
`SVGAttributes#color-interpolation-filter` to match the current spec,
which states the only accepted values are 'auto', 'sRGB' and
'linearRGB'.

this commit renames 's-rGB' to 'sRGB' and 'linear-rGB' to 'linearRGB'.
it also removes 'inherit'.

it is believed this was done by accident in a regex-based replacement of
camelCased properties to kebab-cased attributes in 667597d
  • Loading branch information
rwaskiewicz committed Jul 13, 2023
1 parent a353769 commit 3ccf753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/declarations/stencil-public-runtime.ts
Expand Up @@ -1444,7 +1444,7 @@ export namespace JSXBase {
clipPathUnits?: number | string;
'clip-rule'?: number | string;
'color-interpolation'?: number | string;
'color-interpolation-filters'?: 'auto' | 's-rGB' | 'linear-rGB' | 'inherit';
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
'color-profile'?: number | string;
'color-rendering'?: number | string;
contentScriptType?: number | string;
Expand Down

0 comments on commit 3ccf753

Please sign in to comment.