The Problem seems to be introduced on commons between 23. August 2020 and 14. November 2020.
It is related to the update of c-librsvg2.40.20 to c-librsvg2.40.21
Problem:
Clones of elements (without group) are not rendered
Steps to Reproduce: (example with <use)
<?xml version="1.0" encoding="UTF-8"?> <svg width="120" height="40" version="1.1" viewBox="0 0 120 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <circle id="c" cx="40" cy="20" r="10" style="fill:#f00;stroke-width:0"/> <use id="b" transform="translate(20)" xlink:href="#c"/> <use id="a" transform="translate(20)" xlink:href="#b"/> </svg>
Actual Results: (example with <text)
https://commons.wikimedia.org/wiki/File:Librsvg_bug_nested_use.svg
Expected Results:
https://upload.wikimedia.org/wikipedia/commons/d/db/Librsvg_bug_nested_use.svg
Solution:
It works with rust-librsvg2.48.9, see comons-talk as well as with c-librsvg2.40.20 (but not with c-librsvg2.40.21)
Update librsvg: T193352
Discussions:
Jan21: (Problem description) https://commons.wikimedia.org/wiki/User_talk:JoKalliauer#SVG_clone_of_a_clone
Feb21: (discussion) https://commons.wikimedia.org/wiki/Commons:Graphics_village_pump/March_2021#SVG_file_display_different_from_PNG_previews_and_thumbnails
Files
Nov20: https://commons.wikimedia.org/wiki/File:Comparison_optical_telescope_primary_mirrors_PL.svg#filehistory (Version of 18:13, 14. Nov. 2020)
Jan21: https://commons.wikimedia.org/w/index.php?title=File:Test.svg&offset=20210119154600&limit=1#filehistory (version of 15:43, 19. Jan. 2021 by JoKalliauer)
Feb21: https://commons.wikimedia.org/wiki/File:Librsvg_bug_nested_use.svg
Reported upstream: https://gitlab.gnome.org/GNOME/librsvg/-/issues/725