You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebug
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.
John J Barton
unread,
Jan 22, 2009, 10:04:46 AM1/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message