This project is read-only.
22
Vote

CssRewriteUrlTransform breaks binary data in CSS

description

Some libraries like KoGrid includes their icons like binary data directly in the CSS like
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAANCAYAAACZ3F9/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAEFJREFUKFNjoAhISkr+h2J5JDZODNXGwGBsbPwfhIGAA8bGh6HaGBiAGhxAGJmND4M1gQCSM0adCsVQbcPcqQwMALWDGyDvWPefAAAAAElFTkSuQmCC);
https://github.com/Knockout-Contrib/KoGrid/blob/master/KoGrid.css#L414

CssRewriteUrlTransform will rewrite this path to
localhost/Content/data:image/png;base64,xxxxx 
which will break it

comments

benmccallum wrote Nov 7, 2013 at 6:10 AM

Probably a duplicate of the issue I raised here:
https://aspnetoptimization.codeplex.com/workitem/88

AndersM wrote Nov 13, 2013 at 10:00 AM

suhasj wrote Nov 19, 2013 at 12:58 AM

@AndersM: Thank for you for the repro. Looks like an issue. I'll talk to the team to have a look

LukasMaci wrote Mar 18, 2016 at 3:28 PM

Hi Microsoft, is there any chance to get rid of this bug?