Hi, I noticed a bug when using base64 images in css. Here's what
happens:

Run this code:
var bimg="data:image/
png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAnUlEQVRoge3YwQ3DIBAAwThy/
0VSCKSD+LEP32OmgtUdSIhrrXU
+g33fDngisBJYCawEVgIrgZXASmAlsBJYCawEVgIrgZXASmAlsLrPGf1FPT/
QiiuBlcDq3nu/3fDX/AkKjARWbnE1PnD
+c2v6GTTBavwEBVYCK4GVwEpgJbASWAmsBFYCK4GVwEpgJbASWAmsBFYCK4GVwEpg9QMtATpPRkhv3wAAAABJRU5ErkJggg==";
var nSt = document.createElement('style');
nSt.type="text/css";
nSt.innerHTML='body{background-image:url('+bimg+');background-
repeat:repeat-x;background-position:50% 50%;}'
document.getElementsByTagName('head')[0].appendChild(nSt);

Then check the css for the body element in firebug and it will look
like this:
body {
  background-image:url(data:image/png;
  background-position:50% 50%;
  background-repeat:repeat-x;
}

The background-image url gets cut off at the end of "png;" Presumably
because of the semicolon.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to