Logo: Relish

  1. Sign in

Project: Middleman-core

Automatically detect and insert image dimensions into tags

In order to speed up development and appease YSlow

Scenarios
Rendering an image with the feature disabled
Given
"automatic_image_sizes" feature is "disabled"
And
the Server is running at "automatic-image-size-app"
When
I go to "/auto-image-sizes.html"
Then
I should not see "width="
And
I should not see "height="
Rendering an image with the feature enabled
Given
"automatic_image_sizes" feature is "enabled"
And
the Server is running at "automatic-image-size-app"
When
I go to "/auto-image-sizes.html"
Then
I should see "width="
And
I should see "height="

Last published about 5 years ago by middleman.