Agree with the removal of -moz-image-rect but disagree that this 
functionality is "well covered" by the background-image/size/position 
combo. Using 3 properties for spriting has always felt very hacky. 
Importantly it greatly reduces the devs ability to easily position and size 
background sprited images because those properties are being sacrificed to 
the "spriting syntax". 

The CSSWG spec-ed image fragmenting as part of `image()` a long time ago (I 
want to say 10 years, it was originally part of images-3 i believe?).

https://developer.mozilla.org/en-US/docs/Web/CSS/image/image#image_fragments

This would bring background spriting more inline with the `object-view-box` 
spriting syntax for the IMG tag that Chrome recently added.

On Tuesday, September 19, 2023 at 3:35:01 AM UTC-5 [email protected] wrote:

> In Firefox 120 (so at the beginning of next cycle) I plan to remove a 
> Firefox-only CSS feature that we have no use for anymore in bug 1853867.
>
> -moz-image-rect is a convenient-ish way of doing sprite images, but 
> other browsers don't have anything similar and the use case is well 
> covered by background-size + background-position.
>
> Given that, I don't expect the removal to be particularly risky, but I'm 
> happy to put it behind a pref first or what not if people think otherwise.
>
> -- Emilio
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/140c7728-af19-4390-b63a-9689f8d73c97n%40mozilla.org.

Reply via email to