[Webkit-unassigned] [Bug 116963] New: Implement `picture` element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 29 07:48:10 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=116963
Summary: Implement `picture` element
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://www.w3.org/TR/html-picture-element/
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: info at anselm-hannemann.com
The `picture` element is a markup pattern that allows developers to declare multiple sources for an image using `media` attributes on `source` elements, similar to the `video` element. This allows authors to specify requirements for when/if image sources are requested/displayed.
The Specification published by the HTML WG is the following:
http://www.w3.org/TR/html-picture-element/
Note that the `picture` element is able to make use of the resolution feature of the `srcset` attribute, but does not strictly require it. The two patterns are complementary, and together fulfill the full list of Use Cases and Requirements for Standardizing Responsive Images as published by the W3C:
http://www.w3.org/TR/2013/WD-respimg-usecases-20130226/
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.
Public standards discussion: http://www.w3.org/TR/html-picture-element/
---
Additional information about this:
We ran an open survey, and 42% of the 264 responses (at time of posting this) said that they are making use of “art direction” with their current “responsive images” solution.
This survey is largely comprised of attendees of last week’s Mobilism conference and developers following http://twitter.com/smashingmag (702,117 followers), so I assume it represents a fairly wide cross-section of the developer community. It’s also worth noting that developers heavily favor the `picture` element (or equivalent polyfill).
https://docs.google.com/forms/d/1LIbd9wiM7M_m-rUB85WAiGT-h8QUY-PRJwjiBRiuY4Y/viewanalytics
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list