Created attachment 810065 [details] button-image.png We tend to use toolbarButton.style.listStyleImage to set images on the social buttons. The problem with this is that a) the images come from elsewhere and b) there is no way to constrain the size in css when using listStyleImage. The only way to constrain the image size that I am aware of is to actually set the button image (e.g. button.setAttribute("image", url) ), then we can use css to constrain the image size. @jaws, is there any css mechanism used on combination with listStyleImage that I am unaware of?
https://developer.mozilla.org/en-US/docs/CSS/-moz-image-region should get you what you need. You can constrain the image to 16x16 using -moz-image-region: rect(0, 16px, 16px, 0);
need for this fix on the old style toolbarbutton is removed by bug 935640
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.