Git Product home page Git Product logo

Comments (2)

atjn avatar atjn commented on July 18, 2024 1

The MDN information is not up to date. WebKit supports part of the spec without the -webkit- flag, which makes it even harder to write the CSS in a way that all browsers can read and support.
Caniuse has the latest info: https://caniuse.com/css-image-set

from surveys.

atjn avatar atjn commented on July 18, 2024

I think it would be great to have this in the survey. Delivering images across jpeg, webp, avif and jxl is really hard right now, and a stable spec that all browsers support could really go a long way to make it easier to deliver those images.

Right now, It seems like developers resort to proprietary cloud services for image delivery, because it is so hard. And those services work by sniffing the browser UA and by delivering different formats than what the URL advertises. Those are all bad practices.

Another detail is that image-set could be used to deliver different sized images if the width (w) dimension specifier could be supported. This is not officially in the spec yet, but it has been discussed and could quickly be added if there was pressure to do so.

Adding support for w and the type() specifier would allow open source build tools to deliver the same images to image-set in css as they do to <picture> elements in html, and I sincerely believe that would make adoption of those techniques much more feasible.

from surveys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.