Skip to toolbar

Community & Business Groups

Really like the picture element idea

As the subject says, I think the <picture> element is a great idea and to have it follow a similar pattern to the <video> and <audio> elements make sense.

One small change which I think would make more sense from a readability point of view would be rename the attribute ‘srcset’ to just ‘set’.  In its current suggestion the source attribute reads ‘source source set’

<source srcset=”small-1.jpg 1x, small-2.jpg 2x”>

However in the way I have suggested it would read as ‘source set’ and look like the following:

<source set=”small-1.jpg 1x, small-2.jpg 2x”>

Although very minor, but I think it reads much nicer.

Leave a Reply

Your email address will not be published. Required fields are marked *

Before you comment here, note that this forum is moderated and your IP address is sent to Akismet, the plugin we use to mitigate spam comments.