Open Bug 945600 Opened 12 years ago Updated 3 years ago

Should allow interpolation between different-length background-position lists

Categories

(Core :: CSS Parsing and Computation, defect, P4)

defect

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

(Keywords: testcase)

Right now we end up just bailing out from nsStyleAnimation::ComputeDistance if the two background-position lists have different lengths. But if I read the spec right it should animate as http://dev.w3.org/csswg/css-transitions/#animtype-repeatable-list which should allow interpolation between different-length lists, right?
A simple testcase: <div style="background: url(http://www.mozilla.org/images/mozilla-banner.gif) no-repeat; animation: slide 15s linear infinite; -webkit-animation: slide 15s linear infinite; height: 200px"></div> <style> @keyframes slide { 0% { background-position: 0 0, 0 0; } 100% { background-position: 200px 0; } } @-webkit-keyframes slide { 0% { background-position: 0 0, 0 0; } 100% { background-position: 200px 0; } } </style>
Keywords: testcase
OS: Mac OS X → All
Priority: -- → P4
Hardware: x86 → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.