lib/onebox/engine/gfycat_onebox.rb in onebox-1.8.75 vs lib/onebox/engine/gfycat_onebox.rb in onebox-1.8.76
- old
+ new
@@ -25,11 +25,11 @@
<a href="https://gfycat.com/@#{data[:author]}" target="_blank" rel="nofollow noopener">
<span>#{data[:author]}</span>
</a>
</h4>
- <div class="video">
- <video controls loop muted poster="#{data[:posterUrl]}" style="--aspect-ratio: #{data[:width]}/#{data[:height]}">
+ <div class="video" style="--aspect-ratio: #{data[:width]}/#{data[:height]}">
+ <video controls loop muted poster="#{data[:posterUrl]}">
<source id="webmSource" src="#{data[:webmUrl]}" type="video/webm">
<source id="mp4Source" src="#{data[:mp4Url]}" type="video/mp4">
<img title="Sorry, your browser doesn't support HTML5 video." src="#{data[:posterUrl]}">
</video>
</div>