Project

General

Profile

Actions

Bug #63107

closed

Resposive Images: source element within picture element has wrong src attribute

Added by Arnd Messer over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
TypoScript
Target version:
Start date:
2014-11-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

The source element when used within the picture element must use the srcset attribute. The src attribute must not be present.

<picture>
    <source srcset="images/large.jpg" media="(min-width: 1000px)">
    <source srcset="images/medium.jpg" media="(min-width: 800px)">
    <img src="images/small.jpg" alt="a picture">
</picture>

http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#the-picture-element

One site effect ist, that picturefill did not work out of the box, as it requires a standard html5 element.
http://scottjehl.github.io/picturefill/#using-picture

Actions

Also available in: Atom PDF