Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1>Findings as of Friday Feb 5th</h1>
<ul>
  <li>not all WebP images are broken.</li>
  <li>it has nothing to do with the contentstack parameters on their own</li>
  <li>the threshold when an image breaks are image specific</li>
  <li>thresholds exist for quality (lower breaks), width and height (higher breaks)</li>
  <li>this is exclusive to iOS 14 devices so far</li>
</ul>
<h1 style="color:red;">BROKEN images.contentstack.io</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&quality=80&auto=webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image</br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&quality=80&auto=webp)"/>
</td></tr>
</table>

<h1 style="color:red;">BROKEN Forced WebP images.contentstack.io ?width=150p&quality=80&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&quality=80&format=webp" width="200" height="100" style="border:3px solid red" /></td></tr>
</table>
<hr>
<h1>Threshold analysis</h1>
<h2 style="color:green;">WORKS Forced WebP images.contentstack.io ?width=2629&quality=80&format=webp</h2>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=2629&quality=80&format=webp" width="200" height="100" style="border:3px solid red" />

<h2 style="color:red;">BROKEN Forced WebP images.contentstack.io ?width=2630&quality=80&format=webp Anything larger is also broken</h2>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=2630&quality=80&format=webp" width="200" height="100" style="border:3px solid red" />

<h2 style="color:green;">WORKS Forced WebP images.contentstack.io ?width=2629&height=950&quality=80&format=webp</h2>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=2629&height=950&quality=80&format=webp" width="200"  style="border:3px solid red" />

<h2 style="color:red;">BROKEN Forced WebP images.contentstack.io ?width=2629&height=951&quality=80&format=webp Anythingh larger is also broken</h2>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=2629&height=951&quality=80&format=webp" width="200" style="border:3px solid red" />

<h2 style="color:green;">WORKS Forced WebP images.contentstack.io ?width=2629&height=950&quality=80&format=webp</h2>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=2629&height=950&quality=80&format=webp" width="200"  style="border:3px solid red" />

<h2 style="color:red;">BROKEN Forced WebP images.contentstack.io ?width=2629&height=950&quality=79&format=webp Any lower quality breaks</h2>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=2629&height=950&quality=79&format=webp" width="200"  style="border:3px solid red" />

<h2 style="color:green;">WORKS Forced WebP images.contentstack.io ?width=2629&height=950&quality=79&format=webp</h2>
<img src="https://merchandising-assets.bestbuy.ca/bltc8653f66842bff7f/blt9d3acd7b95b24087/5e67dfada1d80443c89010ed/feature-banner-browser-size-tech-white-gradient-xs.jpg?width=2629&height=950&quality=79&format=webp" width="200"  style="border:3px solid red" />

<hr>



<h1 style="color:green;">WORKS Forced WebP images.contentstack.io JPG source owl ?width=4630&height=2950quality=80&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/blteae40eb499811073/bltc5064f36b5855343/59e0c41ac0eddd140d5a8e3e/owl.jpg?width=4630&height=2950quality=80&format=webp" width="200" height="100" style="border:3px solid red" /></td>
</table>



<h1 style="color:green;">WORKS Auto WebP images.contentstack.io JPG source ?auto=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?auto=webp" width="200" height="100" style="border:3px solid red" /></td>
</table>
<h1 style="color:green;">WORKS Forced WebP images.contentstack.io JPG source ?format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?format=webp" width="200" height="100" style="border:3px solid red" /></td>
</table>

<h1 style="color:red;">BROKEN Forced WebP images.contentstack.io JPG source ?width=150p&quality=80&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://merchandising-assets.bestbuy.ca/bltc8653f66842bff7f/blt9d3acd7b95b24087/5e67dfada1d80443c89010ed/feature-banner-browser-size-tech-white-gradient-xs.jpg?width=150p&quality=80&format=webp" width="200" height="100" style="border:3px solid red" /></td>
</table>

<h1 style="color:green;">WORKS Forced WebP images.contentstack.io JPG source owl ?width=150p&quality=80&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/blteae40eb499811073/bltc5064f36b5855343/59e0c41ac0eddd140d5a8e3e/owl.jpg?width=150p&quality=80&format=webp" width="200" height="100" style="border:3px solid red" /></td>
</table>



<h1 style="color:red;">BROKEN  Forced WebP images.contentstack.io JPG Switched source ?format=webp&width=150p&quality=80</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://merchandising-assets.bestbuy.ca/bltc8653f66842bff7f/blt9d3acd7b95b24087/5e67dfada1d80443c89010ed/feature-banner-browser-size-tech-white-gradient-xs.jpg?&format=webp&width=150p&quality=80" width="200" height="100" style="border:3px solid red" /></td>
</table>
<h1 style="color:red;">BROKEN Forced WebPly images.contentstack.io ?width=150p&quality=80&format=webply</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&quality=80&format=webply" width="200" height="100" style="border:3px solid red" /></td>
</table>
  <h1 style="color:red;">BROKEN Forced WebPll images.contentstack.io ?width=150p&quality=80&format=webpll</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&quality=80&format=webpll" width="200" height="100" style="border:3px solid red" /></td>
</table>
<h1 style="color:red;">BROKEN Forced WebP images.contentstack.io Wider ?width=151p&quality=80&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=151p&quality=80&format=webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image</br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=151p&quality=80&format=webp)"/>
</td></tr>
</table>
<h1 style="color:red;">BROKEN Forced WebP images.contentstack.io Flipped ?quality=80&width=150p&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?quality=80&width=150p&format=webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image</br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?quality=80&width=150p&format=webp)"/>
</td></tr>
</table>
<h1 style="color:green;">WORKS Forced WebP w/o quality images.contentstack.io ?width=150p&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&format=webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image</br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?width=150p&format=webp)"/>
</td></tr>
</table>
<h1 style="color:green;">WORKS Forced WebP w/o width images.contentstack.io ?quality=80&format=webp</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?quality=80&format=webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image</br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?quality=80&format=webp)"/>
</td></tr>
</table>
<h1 style="color:green;">WORKS Forced WebP no other params images.contentstack.io</h1>
<table border="1">
<tr><td>Image tests<br>
<img src="https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?&format=webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image</br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://images.contentstack.io/v3/assets/bltc8653f66842bff7f/blt6e4a1d3e7dea65fa/60072cd994a1800f61b4e4a6/heb-20210122-valentines-day-hero-s.jpg?&format=webp)"/>
</td></tr>
</table>
<hr>
<h1>Web P Images</h1>
<table border="1">
  <tr><td>Image tests<br>
<img src="https://www.gstatic.com/webp/gallery/1.webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image<br>
<div style="width:200px; height:100px; border:3px solid red; background-image: url(https://www.gstatic.com/webp/gallery/1.webp)"/>
</td>
  
</tr>
   <tr><td>Image tests<br>
<img src="https://www.learningcontainer.com/wp-content/uploads/2020/08/Small-Sample-Webp-Image-file-download.webp" width="200" height="100" style="border:3px solid red" /></td><td>
  Div Test with background image<br>
  <div style="width:200px; height:100px; border:3px solid red; background-image: url(https://www.learningcontainer.com/wp-content/uploads/2020/08/Small-Sample-Webp-Image-file-download.webp)"/>
</td></tr>
 </table>


              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console