Bug 73113

Summary: From @keyframes rules with the same name, the last rule should be used
Product: WebKit Reporter: Roland Steiner <rolandsteiner>
Component: CSSAssignee: Roland Steiner <rolandsteiner>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, koivisto, macpherson, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 72462    
Attachments:
Description Flags
Patch simon.fraser: review+, simon.fraser: commit-queue-

Roland Steiner
Reported 2011-11-24 23:43:10 PST
http://www.w3.org/TR/css3-animations/ specifies that if there are multiple @keyframes rules with the same name, the last one should be the one used. Currently the first one is used.
Attachments
Patch (4.42 KB, patch)
2011-11-24 23:48 PST, Roland Steiner
simon.fraser: review+
simon.fraser: commit-queue-
Roland Steiner
Comment 1 2011-11-24 23:48:57 PST
Simon Fraser (smfr)
Comment 2 2011-11-28 11:50:26 PST
Comment on attachment 116569 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=116569&action=review > LayoutTests/animations/duplicated-keyframes-name.html:31 > + -webkit-animation-name: "anim"; > + } > + @-webkit-keyframes "anim" { > + from { left: 50px; } > + to { left: 100px; } > + } > + @-webkit-keyframes "irrelevant" { > + from { left: 150px; } > + to { left: 2500px; } > + } > + @-webkit-keyframes "anim" { > + from { left: 200px; } > + to { left: 300px; } > + } Keyframe names are IDENT, not STRING, so should not be quoted.
Roland Steiner
Comment 3 2011-11-28 20:06:41 PST
Note You need to log in before you can comment on or make changes to this bug.