#36348: ManifestStaticFilesStorage breaks CSS containing data: URIs with 
multiple
nested url()s
-------------------------------------+-------------------------------------
     Reporter:  Samuel Cormier-      |                    Owner:  Samuel
  Iijima                             |  Cormier-Iijima
         Type:  Bug                  |                   Status:  new
    Component:  contrib.staticfiles  |                  Version:  5.2
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):

 * resolution:  invalid =>
 * stage:  Unreviewed => Accepted
 * status:  closed => new

Comment:

 Thank you Samuel, this helps. I have used your SVG and I have encoded it
 and try it with `ManifestStaticFilesStorage`. What I get is:

 {{{
 #example {
     background-image: url("data:image/svg+xml,%3Csvg width='100'
 height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter
 id='blur1'%3E%3CfeGaussianBlur stdDeviation='2' /%3E%3C/filter%3E%3Cfilter
 id='blur2'%3E%3CfeGaussianBlur stdDeviation='5' /%3E%3C/filter%3E%3Crect
 width='50' height='50' x='10' y='10' fill='red' filter='url(%23blur1)'
 /%3E%3Crect width='50' height='50' x='40' y='40' fill='blue'
 filter='url("#blur2#blur2")' /%3E%3C/svg%3E");
 }
 }}}

 I'm not sure why I get `url("#blur2#blur2")` instead of `url("#blur2")`
 but I see your point that is the result invalid. What I don't understand
 is why the SVG still seems to work: I tested in Firefox, is this a Firefox
 wizardry?
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36348#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019669912436-a9f66a4e-da2d-4890-a29c-79dffa19921b-000000%40eu-central-1.amazonses.com.

Reply via email to