mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
580431ca43
allows you to use image_tag helper and have it build the asset urls for your srcset images, just like it does for your main src. Leaves absolute urls alone, (having // in the path) ``` <%= image_tage 'pic_1980.jpg', srcset: 'pic_640.jpg 2x, pic_1024.jpg 3x' %> => <img src="/images/pic_1980.jpg" srcset="/images/pic_640.jpg 2x, /images/pic_1024.jpg 3x"> ```
7 lines
No EOL
354 B
Gherkin
7 lines
No EOL
354 B
Gherkin
Feature: Support srcset property as params for image_tag helper
|
|
This lets you specify responsive image sizes
|
|
|
|
Scenario: Rendering an image with the feature enabled
|
|
Given the Server is running at "image-srcset-paths-app"
|
|
When I go to "/image-srcset-paths.html"
|
|
Then I should see '//example.com/remote-image.jpg 2x, /images/blank_3x.jpg 3x' |