The obvious intention here is that, for ancient browsers that don't understand SVG images, you fall back to the PNG version.
However, if the PNG version also fails (such as, for example, if I've pulled the .bs file locally and am rendering it by itself, without the rest of the repository...), then the image just forever cycles and the page is never allowed to finish loading. What's worse, at least on Chrome, the image itself constantly resets between "broken" and "loading", which changes its height (from the height of the broken-image icon to 0x0, then back again), so the entire spec following the first such image is rapidly shifting up and down forever.
This functionality probably isn't important to keep (I haven't seen it anywhere else, and browsers that don't understand SVG are ancient at this point, and not worth targetting for the audience of "people that read specs"), but if it is, could you instead abstract it out to a <script> block and make it more robust, perhaps with something like:
On many of your SVG images, you have code like:
The obvious intention here is that, for ancient browsers that don't understand SVG images, you fall back to the PNG version.
However, if the PNG version also fails (such as, for example, if I've pulled the .bs file locally and am rendering it by itself, without the rest of the repository...), then the image just forever cycles and the page is never allowed to finish loading. What's worse, at least on Chrome, the image itself constantly resets between "broken" and "loading", which changes its height (from the height of the broken-image icon to 0x0, then back again), so the entire spec following the first such image is rapidly shifting up and down forever.
This functionality probably isn't important to keep (I haven't seen it anywhere else, and browsers that don't understand SVG are ancient at this point, and not worth targetting for the audience of "people that read specs"), but if it is, could you instead abstract it out to a
<script>
block and make it more robust, perhaps with something like: