W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] Simplified <picture> element draft

From: Kornel Lesiński <kornel@geekhood.net>
Date: Mon, 25 Nov 2013 11:48:42 +0000
To: James Graham <james@hoppipolla.co.uk>, <whatwg@lists.whatwg.org>
Message-ID: <1428f16f238.276d.7ba2dab7ab189bf60d5422e61747bcec@geekhood.net>

> The advantage of the scheme that zcorpan proposed is that there is no magic 
> proxy; we just add a capability to <img> to select its source using more 
> than just a src attribute. This has better fallback than your design and is 
> easier to implement.

I believe that from testing perspective both approaches are equivalent.

The spec I propose *is* only another way to control src of an image.

The only difference is that I don't expose the <img> to scripts.

That may make it even simpler, because you can't have odd cases like author 
moving/removing the controlling img or setting values directly on img that 
conflict with picture's definitions.

regards, Kornel
Received on Monday, 25 November 2013 11:49:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:14 UTC