On Mon, Oct 25, 2010 at 4:48 PM, Jonas Sicking <[email protected]> wrote: > Like I said, I think creating an OM that covers all the cases here > would create something very complex. I'd love to see a useful proposal > for <http://dev.w3.org/csswg/css3-images/>.
It doesn't seem overly difficult. Using the proposed Values API, you'd do something like "elem.style.values.backgroundImage.url = [DOMURL goes here]". Then you'd just have to define the serialization of this to cssText, which would probably just involve an opaque URL like "about:url" or something similar. It wouldn't roundtrip through a string, but that's probably an acceptable penalty. ~TJ
