Bug 249854 - Consider auto-generating CSS animation wrappers from CSSProperties.json
Summary: Consider auto-generating CSS animation wrappers from CSSProperties.json
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-23 15:03 PST by Tim Nguyen (:ntim)
Modified: 2022-12-30 15:04 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2022-12-23 15:03:30 PST
I think this is worth doing, it's easy to forget to add animation support, so having fields in CSSProperties.json would help.

Since the most common type of animation are discrete ones, we should support:

```
"animation": "discrete",
```

but for more complex wrappers:

```
"animation": {
  "wrapper": "LengthPropertyWrapper",
  "flags": ["IsLengthPercentage", "NegativeLengthsAreInvalid"]
}
```

For custom wrappers:
```
"animation": {
  "wrapper": "PropertyWrapperFlex"
}
```

etc.

and then "animation": "not-animatable" if unsupported.

That field would be mandatory to add.
Comment 1 Radar WebKit Bug Importer 2022-12-30 15:04:15 PST
<rdar://problem/103781617>