glitchdotcom / WebPutty

WebPutty is a simple CSS editing and hosting service that you can run on Google App Engine.
596 stars 121 forks source link

Data URIs can sometimes result in broken CSS #2

Open tghw opened 12 years ago

tghw commented 12 years ago

what looks to be happening is the parser is barfing on the actual base64-encoded data portion of the URI and then instead of dropping the entire CSS property that URI was a part of, it just leaves a malformed one in it's place.

so instead of:

background-image: url(data:image/png;base64,[big-blob-o-data]);

you're left with:

background-image: url(data:image/png;

...which I think is causing the rest of the CSS file to be parsed improperly.

tghw commented 12 years ago

Probably another pyscss bug.