Setup issue: SVG sprite buttons not display in Firefox
See original GitHub issueExpected behaviour
Like in Edge:
Actual behaviour
Environment
- Browser: Firefox
- Version: 60.0b16 (64 bit)
- Operating System: MS Windows 10 x64
- Version: 1709 (16299.371)
Steps to reproduce
File is builded using Python with module yattag scripts: jQuery, Bootstrap, and plyr
File structure:
βΒ Β
βββ html
| βββ vtt
| βββ jpg
| βββ mp4
βΒ Β βββ html
βββ media
βββ js
| βββ bootrap.js
| βββ jquery.js
| βββ font-awesome,js
| βββ data.js (here is script intilalizing plyr)
βββ css
| βββ bootrap.css
| βββ my css
| βββ font-awesome,js
| βββ data.js (here is script intilalizing plyr)
βββ img
| βββ jpg's
βββ blank.mp4
βββ plyr.min.js
βββ plyr.css
βββ plyr.css.map
Β Β βββ plyr.svg
<video controls crossorigin playsinline id=player poster="local path to poster">
<source src="local path to file" type="video/mp4" />
<track kind="captions" label="English" srclang="en" src="local path to vtt file" default="" \>
</video>
<script src="../media/plyr.min.js"></script>
document.addEventListener('DOMContentLoaded', () => {
const player = new Plyr('#player', {
iconUrl: '../media/plyr.svg'
});
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
The SVG logo does not display my site on firefox
The problem is that you have the image in a link in a floated element, which is itself in a floated element. By...
Read more >SVG use external source not working on firefox - Stack Overflow
This explains my problem. I added the sprite in the same parent folder and it worked on Firefox. Chrome and safari didn't mind...
Read more >SVG icons are not displaying IE 11 - Salesforce Developers
Hi All, I have use a SVG icon for a button that is displaying in Chrome and Firefox but not displaying in IE...
Read more >Icon System with SVG Sprites - CSS-Tricks
If you use IcoMoon to generate your SVG sprite (using the SVG button rather than Font), it puts the SVG inside the HTML...
Read more >Material Icons Guide | Google Fonts
Setup Method 1. ... The icons are available for download in SVG or PNGs, formats that are ... Using the font is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think Iβve found the issue. Itβs meant to work like this:
The problem is if the sprite already exists, it doesnβt inject again as thereβs a check to see if it exists and return. Iβll get this one fixed today.
This should be fixed by now. If not, let us know.