This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20210 - No way to determine which source is being displayed
Summary: No way to determine which source is being displayed
Status: RESOLVED NEEDSINFO
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
: 20256 (view as bug list)
Depends on: 20173 20256
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-03 15:27 UTC by Marcos Caceres
Modified: 2012-12-31 05:15 UTC (History)
5 users (show)

See Also:


Attachments

Description Marcos Caceres 2012-12-03 15:27:45 UTC
+++ This bug was initially created as a clone of Bug #20173 +++

The img@srcset spec lacks a script-based means to determine what resource the image element is displaying (if any). The use case for this is for testing and generally for a developer to know what is going on.
See: http://usecases.responsiveimages.org/#api-to-manipulate-sources
Comment 1 Ian 'Hixie' Hickson 2012-12-08 00:25:29 UTC
For the developer, the console tools are probably a better way of helping.

For testing, wouldn't checking the rendered result be better? What are we testing exactly, and how?
Comment 2 Ian 'Hixie' Hickson 2012-12-08 00:28:18 UTC
*** Bug 20256 has been marked as a duplicate of this bug. ***