Bug 20473

Summary: How should transition properties repeat when you have duplicates?
Product: WebKit Reporter: Chris Marrin <cmarrin>
Component: CSSAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, hyatt, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Chris Marrin
Reported 2008-08-20 17:55:43 PDT
Today in TOT transition properties are filled out like this: transition-property: left, top, width, height, opacity; transition-duration: 1s, 2s; This will expand the duration to: 1s, 2s, 1s, 2s, 1s according to the CSS rules. But what should we do if you have duplicate property values like this: transition-property: opacity, left, opacity, top, width, opacity, height, opacity; Here we have 8 property values, but the 3 duplicates get removed in RenderStyle::adjustTransitions(), leaving: left, top, width, height, opacity but what should duration be in this case? Does it behave as though the unfilled values are filled in and then the duplicates removed, or should we remove duplicates and then fill out the values? Today we do the former, so duration ends up as: 2s, 2s, 1s, 1s, 2s Which should it be?
Attachments
Pierre-Olivier Latour
Comment 1 2009-01-09 13:28:19 PST
We have a radar for it: <rdar://problem/6480074> [transitions] spec needs to be clear how values repeat
Simon Fraser (smfr)
Comment 2 2010-04-26 09:19:29 PDT
Spec was clarified, and the implementation matches it.
Note You need to log in before you can comment on or make changes to this bug.