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 211
    • Issues 211
    • 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
  • #379

Provide a way to specify extra CSS information

Librsvg's public API doesn't let the caller specify extra styling information when rendering an SVG. People use various hacks to accomplish this, which boil down to creating a wrapper SVG with a <style> element, and then somehow including the original SVG under this. For example, GTK uses an xi:include element with some precarious escaping to construct a data: URL.

Similarly, we had a bug about Wikipedia wanting to use fill="currentColor" when using equations rendered as SVG; the intent was to have the equations be rendered in the same color as the surrounding text.

It would be useful to have a way to specify extra stylesheet data when rendering an SVG.

Assignee
Assign to
Time tracking