mlisook / plastic-image

A Polymer 3.0 element which adds extra plasticity to <iron-image> with support for srcset and lazy loading
MIT License
30 stars 6 forks source link

fix iss 38, flexible webp detection #39

Closed mlisook closed 6 years ago

mlisook commented 6 years ago

Adds a new property, webpRegex (attribute webp-regex) which can be used to override the regex test pattern used to detect webp images in the srcset.

Updated the webp portion of the tests to include this feature.