seb-celinedesign

Results 9 comments of seb-celinedesign

For those using js templates, one workaround is to manually require your js files and not calling shortcode with `this`. You loose [access to data pages](https://www.11ty.dev/docs/languages/javascript/#access-to-page-data-values) but hot reloading is...

@distantnative This issue turn out to be severe in certain case. If we consider my initial example above, on large screen or HDPI screen a 360px wide image will be...

Don't cheat to the browser in the width descriptor : `srcset="/medias/pages/…/-760x.jpg 360w"`

Why not put (in all cases) the real generated image width in the w descriptor ?

Just to make it clear, i've just created an example of the issue : you can see it with a 2x dpi screen (with dev tool) or in Chrome :...

> Which raises the **question**, if the srcset should contain duplicates? Maybe both lines could be compressed into one: Request (324,162) srcset, only low resolution exists, only that size is...

Sharp max function is deprecated. Instead we need to use the Sharp fit param. I made a pull request that add the fit param to gulp-responsive config : #146

Hi, just add the fit option in the config object and a test for it. Is that what you wanted ?

> I mean a test that guarantees the correct output. By "correct output" do you mean the file at the right dimension ? Because none of the current test is...