New issue
Advanced search Search tips

Issue 233751 link

Starred by 224 users

Issue metadata

Status: Duplicate
Merged: issue 368830
Closed: Jul 2014
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Launch-OWP
Launch-Accessibility: ----
Launch-Exp-Leadership: ----
Launch-Leadership: ----
Launch-Legal: ----
Launch-M-Approved: ----
Launch-M-Target: ----
Launch-Privacy: ----
Launch-Security: ----
Launch-Test: ----
Launch-UI: ----
Rollout-Type: ----

Sign in to add a comment

Add support for the picture element

Project Member Reported by, Apr 19 2013

Issue description

(See go/owp-launch-guide for an overview)

Change description:
Enable a responsive images solution and give developers control over the image resource that is downloaded & displayed using the various resources' media attributes

Changes to API surface:
* The `picture` element will be recognized in HTML and displayed as an image. 
* Its `src` attribute will trigger a resource download. 
* The `src` attribute of the first matching `source` child element with a matching `media` attribute will trigger a resource download, unless `picture`has an `src` attribute.
* The DOM API for the element will resemble that of `img`, with possible minor changes.

WebKit bug: None

Public standards discussion:

Support in other browsers: current (expected)
Internet Explorer:

*Make sure to fill in any labels with a -?, including all OSes this change
affects. Feel free to leave other labels at the defaults.
This is redundant with <img srcset>, which is simpler to implement and use.

Thanks for posting. Of course your opinion on the subject is certainly valued and appreciated, and has led to refinements in both the use cases and `picture`/`srcset` specifications. However, there is a healthy amount of data showing that the two markup patterns best address different use cases [1], and can be used either independently or in concert [2]. While `srcset` may be simpler to implement it has been shown that authors prefer the `picture` syntax by a wide margin, most recently in the results of a poll [3] openly distributed via Twitter.

Just to sum up: the two syntaxes are complementary, not diametrically opposed. We believe each are stronger when used in concert, and that there is a valid case for `picture`’s implementation.


Comment 3 Deleted

Comment 4 by, May 29 2013

Please avoid non-technical comments on this thread. 
If you're here to show support for the feature (which is awesome!), you can star this issue which will both show your support and keep you notified on any future developments. 
"+1" type of comments are in general not helpful in this type of threads.

Comment 5 by, Sep 24 2013

Project Member

Comment 6 by, May 23 2014

The following revision refers to this bug:

r174731 | | 2014-05-23T23:19:51.015885Z

Changed paths:

<picture>: Update the <img> element when a <source> changes
BUG= 233751 

Review URL:

Comment 7 by, Jul 23 2014

Mergedinto: 368830
Status: Duplicate
This is a duplicate of which is now fixed

Sign in to add a comment