UNPKG

grunt-responsive-images-extender

Version:

Extend HTML image tags with srcset and sizes attributes to leverage native responsive images.

36 lines (26 loc) 804 B
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Testing | grunt-responsive-images-extender</title> <style> img { display: block; } </style> </head> <body> <img alt="A simple image" src="/assets/image.png" title="An über-simple image"> <img alt="Sizes please" src="/assets/image.png" srcset="" /> <img src="/assets/image.png" width="480"> <img src="/assets/image.png" width="250"> <img src="/assets/image.png" srcset="" sizes=""> <img src="/assets/image.png" width="150" srcset=""> <figure class="fig-hero"> <img src="../assets/image.png"> </figure> <img src="/assets/image.png" class="ignore-me"> <img src="/assets/not_to_be_found.png"> <img src="/assets/do_nothing.png"> </body> </html>