Re: [svgwg] Behaviour of `:percent` spatial media fragment in SVG when no natural size is given for the external image (#1113)

I think your interpretation is correct @longsonr , I just saw the text in https://www.w3.org/TR/SVG2/linking.html#SVGFragmentIdentifiers and this should make Firefox's implementation of this the correct one:

Media fragments can be specified as "pixel:" (default) and "percent:". In the latter case the resulting 'viewBox' transformation is calculated against referenced SVG resolved size (width and height). When the host document cannot resolve the width and height of the SVG document, the used values for width and height should be calculated accorting to CSS rules for [calculating width and ratio for inline replaced elements](https://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width).

-- 
GitHub Notification of comment by goldenboy777
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1113#issuecomment-4528611728 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 24 May 2026 12:23:51 UTC