The behavior of picture's `src` attribute is unclear #2

Closed
yoavweiss opened this Issue Oct 24, 2012 · 14 comments

Projects

None yet

6 participants

@yoavweiss
Member

We need to define the behavior with regard to <picture>'s src attribute:

  • What should be done when src is present and no <source> matches - probably load & display that src if we want to match the <video> tag behavior
  • What should be done when src and a matching source are both present - ???
@yoavweiss yoavweiss referenced this issue in ResponsiveImagesCG/meta Oct 24, 2012
Closed

Create a demo of <picture> #7

@marcoscaceres
Member

in case 2, if src is present, <source>s are ignored. I think that's what video does.

@marcoscaceres marcoscaceres reopened this Oct 24, 2012
@marcoscaceres
Member

(sorry, pressed close and comment by accident!)

@remi-grumeau

Agree

Le 25 oct. 2012 à 12:52 AM, Marcos Caceres notifications@github.com a écrit :

in case 2, if src is present, s are ignored. I think that's what video does.


Reply to this email directly or view it on GitHub.

@marcoscaceres
Member

@anselmh unfortunately, the resource selection algorithm doesn't apply here (and images are not media resources as per HTML). We need a modified version of the process the image candidates algorithm.

@marcoscaceres
Member

@anselmh if you want to check where we are at with picture, see picture.responsiveimages.org.

@yoavweiss
Member

I've implemented src in the prototype based on the <video> model: When src is present, <source> is ignored.

@Wilto
Member
Wilto commented Jan 17, 2013

We’re okay to close this, yeah?

@yoavweiss
Member

I don't think we've added the behavior to the spec. @marcoscaceres ?

@marcoscaceres
Member

Not yet. All src/srcset discussions are blocked waiting on hober letting us know if we are going to merge or not.

@yoavweiss
Member

@marcoscaceres Any news from hober?

@marcoscaceres
Member

Yes. He said to "monkey patch it" on IRC. Basically, what we need to do is just say "where srcset says HTMLImgElement, treat as HTMLSourceElement" or some such.

@nwtn
Member
nwtn commented May 1, 2013

Given #42's mention that srcset overrules src and <source>, and src overrules <source>, are we ok to close this?

@marcoscaceres
Member

Yep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment