Summary: | Support transitions and animations of backgrounds, including gradients | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | Layout and Rendering | Assignee: | Simon Fraser (smfr) <simon.fraser> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | sam |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Description
Simon Fraser (smfr)
2009-06-18 20:24:54 PDT
Hrm, this is harder than I thought. We actually need to animate background-image; -webkit-gradient is just a type of image. It's even harder: 1. Ideally we need to handle transitions via FillLayers, so we deal with multiple backgrounds. 2. When we do this, we should make it so that we can cross-fade background images. 3. The CSS gradient info is not held in the RenderStyle structures. The StyleImage for a gradient is a StyleGeneratedImage, which points back to a CSSImageGeneratorValue, from which a Gradient is created on the fly for painting. |