Skip to content

Added support for type attribute on sources #43

Closed
wants to merge 22 commits into from

2 participants

@nwtn
nwtn commented Sep 28, 2012

…works with empty type, image/svg+xml, and image/webp. See
http://www.w3.org/community/respimg/2012/08/21/thoughts-on-adding-a-type-attribute-2/

Not sure if this is something you'd want to add, since it's not officially part of the recommendation yet, but it'll certainly be useful for people trying to deliver vector graphics to devices that support them.

@nwtn
nwtn commented Oct 2, 2012

Updated this to include @Wilto's updates for Florian’s Compromise. Also for the sake of my own sanity split this into two files, one that uses picture/source and one that uses divs.

David Newton added some commits Oct 3, 2012
David Newton Added a WordPress plugin
WordPress automatically resizes images to create thumbnail, medium,
large, and fullsize versions. The plugin loads these conditionally
using picturefill. It also allows for SVG upload, and association of an
SVG file with a normal raster image, so that the SVG may be included as
a <source>
85357b4
David Newton fixed closing tag on div version 1c8285c
David Newton SVG & WordPress additions to readme
…also changed a few img src atts for consistency
70df482
David Newton Deal with whitespace in SVG field
(plus some cleanup)
a8067a8
David Newton fix for svg url 82443e0
David Newton Fixed img alt, added commented <source> back in for old IE, changed m…
…in-widths, fixed fallback img

…also stripped whitespace
cd91d6e
David Newton fixed alt
also whitespace
73b26eb
David Newton removed </source> 9597e4a
David Newton Added back commented versions for old IE af336fb
David Newton changed how filename matching works to allow for relative URLs; remov…
…ed </source>
3654c9f
David Newton use tabs for indentation 317834d
David Newton Renamed wp-picturefill to wp-picturefill-picturelement 24ebb16
@nwtn nwtn closed this Sep 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.