Actions
Bug #63107
closedResposive Images: source element within picture element has wrong src attribute
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