commit 9a291809142a39f6d0500a175c8769473eca8ea0 Author: hiro hiro@torproject.org Date: Mon Apr 1 00:43:36 2019 +0200
Test svg to png fallback --- templates/navbar.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/templates/navbar.html b/templates/navbar.html index c1ba4ef..a35db68 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -56,9 +56,11 @@ <div class="pull-right"> <a class="btn btn-outline-light pull-right" href="{{ this.url_to(download)|url(alt=this.alt) }}"> {{ _("Download Tor Browser") }}<span class="oi ml-2 p-1"> - <object data="{{ '/static/fonts/open-iconic/svg/arrow-bottom.svg'|asseturl }}" type="image/svg+xml"> - <img src="{{ '/static/fonts/open-iconic/png/arrow-bottom-2x.png'|asseturl }}" /> - </object> + <picture> + <source type="image/svg+xml" srcset="{{ '/static/fonts/open-iconic/svg/arrow-bottom.svg'|asseturl }}"> + <img src="{{ '/static/fonts/open-iconic/png/arrow-bottom-2x.png'|asseturl }}" alt=""> + </picture> + </span> </a> </div>