On Aug 30, 2009, at 4:20 PM, Robert O'Callahan wrote: > On Sat, Aug 29, 2009 at 3:07 PM, Tab Atkins Jr. > <jackalmage@gmail.com> wrote: > (I'll note quickly that my favorite, and I think generally the best > solution, is the one being created by the Media Fragments WG where > they're defining one form of hash on links to image files. Using frex > "image.png#xywh=0,40,20,20" would select a 20x20 region, starting on > the left edge, 40px from the top. > > The problem with that approach is that it doesn't degrade gracefully > for browsers without the feature. Wouldn't "image.png#xywh=0,40,20,20" be treated the same as "image.png" in UAs that did not support the special meaning of the hash value, leaving you with a single image to use for everything, just as with UAs that didn't support "-moz-image-rect()"? > We've just landed a feature on Gecko trunk for image values of the > form -moz-image-rect(image.png,0,40,20,20), which does allow > graceful degradation, e.g. > background: url(image-small-05.png); > background: -moz-image-rect(image.png,0,40,20,20); > > But we may need to add some other feature to support Alex's use case. > > Rob > -- > "He was pierced for our transgressions, he was crushed for our > iniquities; the punishment that brought us peace was upon him, and > by his wounds we are healed. We all, like sheep, have gone astray, > each of us has turned to his own way; and the LORD has laid on him > the iniquity of us all." [Isaiah 53:5-6]Received on Sunday, 30 August 2009 23:59:54 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:38 UTC