Bug 249854

Summary: Consider auto-generating CSS animation wrappers from CSSProperties.json
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: AnimationsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: darin, dino, graouts, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=241186

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>