demo · v137

<use> root reference

An <svg><use href="icon.svg" /> with no #fragment now references the root element of the linked document — instead of failing. Pick an icon set and the references update live; both panels rebuild on demand so you can compare against the explicit-fragment form.

probing…

old syntax (#fragment)

<use href="icons.svg#star">

new (omit fragment)

<use href="icons.svg"> <!-- root -->

the code

<svg>
  <!-- Pre-v137: would fail (no fragment, no target) -->
  <use href="icon.svg" />

  <!-- Still works: explicit fragment -->
  <use href="icons.svg#star" />
</svg>

see also