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 #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34405

Actions #2

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34585

Actions #3

Updated by Arnd Messer over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF