After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707934 - Theme doesn't consider the SVG 'viewBox' attribute
Theme doesn't consider the SVG 'viewBox' attribute
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-09-11 19:07 UTC by Manuel Quiñones
Modified: 2017-06-16 00:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Manuel Quiñones 2013-09-11 19:07:38 UTC
I'm targeting two screen DPIs for my theme.  I'm setting the background image of a GtkCellRendererToggle through the class '.check'.  I'm using a SVG for the background-image.  I would like the SVG to fit my checkbox, regardless of the screen DPI.  If I set the SVG width and height to 26x26, the checkbox looks good in one screen, but looks cutted in the other.  If the theme engine could consider the 'viewBox' attribute [1] then the graphic would fit the checkbox in any
case.

[1] http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#SVG_web)