| Summary: | 'animation-foo' declarations in @keyframes should be parse error | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Animations | Assignee: | Antoine Quint <graouts> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap, bfulgham, dino, graouts, graouts, karlcow, rniwa, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari 15 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 12 | ||
|
Description
Ahmad Saleem
2022-08-04 05:48:55 PDT
It looks like we're not stripping invalid rules when cssText is resolved. Also, what's with the -webkit-keyframes business?!? Oh, this is about not rejecting the animation-* properties when parsing @keyframes rules, see https://www.w3.org/TR/css-animations-1/#keyframes: "The <declaration-list> inside of <keyframe-block> accepts any CSS property except those defined in this specification, but does accept the animation-timing-function property and interprets it specially." This should be an easy fix. I bet we also don't implement this correctly: "None of the properties interact with the cascade (so using !important on them is invalid and will cause the property to be ignored)." Handling of !important is working as expected actually. Pull request: https://github.com/WebKit/WebKit/pull/4318 Committed 254468@main (edad56b68bd2): <https://commits.webkit.org/254468@main> Reviewed commits have been landed. Closing PR #4318 and removing active labels. |