Bug 20473 - How should transition properties repeat when you have duplicates?
Summary: How should transition properties repeat when you have duplicates?
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-08-20 17:55 PDT by Chris Marrin
Modified: 2010-04-26 09:19 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Marrin 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?
Comment 1 Pierre-Olivier Latour 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
Comment 2 Simon Fraser (smfr) 2010-04-26 09:19:29 PDT
Spec was clarified, and the implementation matches it.