[wp-trac] [WordPress Trac] #42920: Add support for the picture element

WordPress Trac noreply at wordpress.org
Wed Jun 9 09:32:04 UTC 2021


#42920: Add support for the picture element
-------------------------------------------------+-------------------------
 Reporter:  desrosj                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-unit-    |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by RobertReiser):

 From a discussion with @adamsilverstein on his post about WordPress 5.8
 adding WebP support:
 https://make.wordpress.org/core/2021/06/07/wordpress-5-8-adds-webp-
 support/#comment-41383

 The idea was to let WordPress know about the supported picture formats and
 their preferred order, for example something like this:

 {{{
 add_theme_support( 'image-format', array( 'jxl', 'webp', 'jpeg' ) );
 }}}

 to indicate which image formats are supported – the order would determine
 the priority in the picture / srcset element.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42920#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list