Hi,
There has been some discussion on how to support CSS sprites.
[bug 113577] https://bugzilla.mozilla.org/show_bug.cgi?id=113577
There are a few options:
(1) define a new CSS value type for background-image property.
(e.g. background-image: -moz-image-with-region('foo',10,10,10,10))
(2) use a new syntax in URI as proposed by Media Fragments WG.
(e.g. http://host/foo#xywh=10,10,10,10).
After some discussion, we were in favor of the second option; it generalizes
CSS sprites as a kind of Media Fragments, and it can be used not only in
background-image but also in <img> tags and so on. But, roc pointed out the
first option may be better considering compatibility with older browsers since
during the transition time, people can use 2 lines of background-image as
follows (older browser simply ignores the 2nd line).
background-image: url(logo7.png);
background-image: -moz-image-with-region('logos.png', 10, 30, 60, 20);
I'd like to have more discussion on this to finalize the plan.
Any feedback is welcomed.
Thank you,
Ryo
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout