Loading...
 
Skip to main content

History: srcset attribute

Source of version: 2 (current)

Copy to clipboard
{QUOTE(replyto="Brion Vibber")}The current version of the patch uses the ‘srcset’ attribute as defined in the current HTML 5 working group version, only using the density options and not the width/height options. Since browsers don’t yet support this, I also include some JavaScript to check the display density and load the appropriate image from the srcset.{QUOTE}

[http://leuksman.com/log/2012/09/28/responsive-images-for-high-dpi-displays-in-mediawiki/|Responsive images for high-DPI displays in MediaWiki]



! Related
* ((HTML5))
Show PHP error messages