fantasai wrote:
I think it's likely that the CSSWG will adopt some kind of CSS-specific
syntax for sprites, although there seems to be interest in a more
powerful solution than a simple URL-with-rect function.

On the other hand, if the Media Fragments WG publishes a fragment
identifier syntax, it's likely that we'd want to implement it. But
since fragment identifiers don't have a good fallback story or a
good way to experiment with syntax, perhaps the best thing to do
would be

  - Implement -moz-image-with-region()
  - Do it in a way that's easy to extend to handle fragment IDs

It sounds to me like we want both -moz-image-with-region() and fragment IDs.

-moz-image-with-region() has a better fallback story, but ultimately I think people will really want to be able to simply create an <img> and point it to part of an image. As I understand it people are doing sprites using background images now since that is the only way to do it. It would simplify the markup greatly if they could just create a single <img>.

/ Jonas
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to