Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-beta7
Description: 
  • Picturefill library is updated to v2.2.1
  • Config schema is updated, see core/modules/responsive_image/config/schema/responsive_image.schema.yml
    • responsive_image.mappings.* is renamed to responsive_image.styles.*
    • mappings is renamed to image_style_mappings
    • responsive_image_mapping is renamed to responsive_image_style
  • Support for sizes attribute is added, but the UI is not updated
  • Admin path is changed from admin/config/media/responsive-image-mapping to admin/config/media/responsive-image-style
  • theme_responsive_image is replaced by template_preprocess_responsive_image
  • Output is done using twig template, see core/modules/responsive_image/templates/responsive-image.html.twig
  • Source tags are build by responsive_image_build_source_attributes, no longer by theme_responsive_image_source
  • Breakpoints in themes have to be ordered from the most specific to the most general one, in a mobile first design this means that the mobile breakpoint has to come last. The picture element (and the polyfill) will use the first match.