Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • librsvg librsvg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 223
    • Issues 223
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • librsvglibrsvg
  • Issues
  • #797
Closed
Open
Issue created Sep 26, 2021 by Mick Krippendorf@pillmuncher

Regression when SVG has only one of width/height and a viewBox

After the weekly update of Solus Linux a few days ago, the User Indicator icon (Numix/scalable/actions/system-shutdown-symbolic.svg) had disappeared both from the Budgie Panel, as well as the LightDM login screen, yet not from the file system. It has since been determined that a downgrade from librsvg-2.52.0 to librsvg-2.50.7 fixes the problem. Another fix was to insert width attribute in the SVG file which, according to the SVG standard, is entirely optional. This might hint at a bug in librsvg-2.52.0.

The wrong behavior occurs when a viewBox attribute is present and additionally either one of width and height is present, but not if both are present or if both are missing. See Joshua Fogg's chart below.

The SVG version 1.1 standard specifies for both width and height that if either is missing, it is treated as having a value of 100%. Version 2 instead specifies that "a computed style of auto is treated equivalent to 100%", whatever that means. I wasn't able to figure out the precise meaning of "computed style", since that phrase seems to be used only once in the whole standard document.

See also:

https://discuss.getsol.us/d/7442-user-indicator-icon-missing

https://dev.getsol.us/T9920

https://github.com/numixproject/numix-icon-theme/issues/1405

https://www.w3.org/TR/SVG11/struct.html#SVGElementWidthAttribute

https://www.w3.org/TR/SVG2/struct.html#SVGElement

Edited Oct 01, 2021 by Federico Mena Quintero
Assignee
Assign to
Time tracking