#36348: ManifestStaticFilesStorage breaks CSS containing data: URIs with 
multiple
nested url()s
-------------------------------------+-------------------------------------
     Reporter:  Samuel Cormier-      |                    Owner:  Samuel
  Iijima                             |  Cormier-Iijima
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.staticfiles  |                  Version:  5.2
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    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
 * status:  assigned => closed

Comment:

 Hello Samuel Cormier-Iijima, thank you for your ticket. I wasn't able to
 find documentation supporting the validity of the provided CSS. Based on
 what I've found:

 1. The `data:image/svg+xml` scheme allows embedding SVGs directly, but the
 correct format looks like this: `background-image:
 url("data:image/svg+xml;charset=utf-8,<svg>...</svg>");`. See
 [https://developer.mozilla.org/en-
 US/docs/Web/CSS/url_function?utm_source=chatgpt.com#using_a_data_url MDN
 documentation] for reference.
 2. It seems the CSS is attempting to apply multiple filters within the SVG
 via the filter attribute in the data URL. However, I don't believe this is
 valid SVG syntax. In SVG, filters are defined within the `<defs>` element
 and then applied using a single filter attribute on a specific SVG
 element. See [https://developer.mozilla.org/en-
 US/docs/Web/SVG/Reference/Attribute/filter filter attribute] and
 [https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/filter
 filter element] docs.

 Could you provide a failing test using valid CSS? I'll close this ticket
 as `invalid` for now, as I’m not convinced this is a Django issue. Feel
 free to reopen it with more information or a reproducible example using
 valid syntax. Also I would advice reaching out to the
 [https://forum.djangoproject.com/ Django Forum]  for getting further
 assistance and confirming this is indeed a Django issue.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36348#comment:4>
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/01070196686a9853-4b2036e6-4f04-492c-95ff-7840ccb3bebe-000000%40eu-central-1.amazonses.com.

Reply via email to